home *** CD-ROM | disk | FTP | other *** search
/ Aminet 43 / Aminet 43 (2001)(GTI - Schatztruhe)[!][Jun 2001].iso / Aminet / dev / c / Amiga-C-Feb01.lha / Amiga-C-Feb01.guide (.txt)
Amigaguide Document  |  2001-03-13  |  410KB  |  8,499 lines

  1. @database Amiga_C_List.guide
  2. @width 70
  3. @node "Introduction" "Introduction"
  4. @wordwrap
  5.                          Amiga-C Mailing List Guide
  6.                          ==========================
  7. This guide is intended as an easy reference to the Amiga C mailing list.
  8. It contains messages posted to the Amiga C mailing list during the month shown on the main page.
  9. To subscribe to the Amiga C mailing list, search for amiga-c at Onelist.
  10. http://www.onelist.com
  11. This AmigaGuide was created using GuideMaker.rexx 
  12.  Roger Light 1999
  13. @endnode
  14. @node "Main" "Amiga C Mailing List Guide"
  15.                     @{b}Amiga C Mailing List Guide
  16.                     ==========================@{ub}
  17.                           Febuary 2001
  18. @{" Introduction " link Introduction } Introduction to the guide.
  19. @{" Search " SYSTEM "RUN <>NIL: Searchguide FINAME"} Search this file (requres SearchGuide)
  20.  ------------------------------------------------------------------- 
  21. @{" Can someone look at this code? " Link "Mail_0"}      Jack York
  22. @{" Re: Can someone look at this code? " Link "Mail_1"}      Jack York
  23. @{" Re: Can someone look at this code? " Link "Mail_2"}      Giles Burdett
  24. @{" Re: Can someone look at this code? " Link "Mail_3"}      Jack York
  25. @{" Clipping graphics output " Link "Mail_4"}      Serge Tumanyan
  26. @{" Re: Can someone look at this code? " Link "Mail_5"}      Allan Odgaard
  27. @{" Re: Can someone look at this code? " Link "Mail_6"}      Jack York
  28. @{" Re: Clipping graphics output " Link "Mail_7"}      Colin Wenzel
  29. @{" Re: Can someone look at this code? " Link "Mail_8"}      Giles Burdett
  30. @{" Re: Can someone look at this code? " Link "Mail_9"}      Colin Wenzel
  31. @{" Re: Can someone look at this code? " Link "Mail_10"}      Allan Odgaard
  32. @{" Re: Clipping graphics output " Link "Mail_11"}      Allan Odgaard
  33. @{" Re: Can someone look at this code? " Link "Mail_12"}      Jack York
  34. @{" Re: Clipping graphics output " Link "Mail_13"}      Sensei
  35. @{" Re: Re: Clipping graphics output " Link "Mail_14"}      Sensei
  36. @{" Re: Can someone look at this code? " Link "Mail_15"}      Jack York
  37. @{" Date problem - PLEASE help! " Link "Mail_16"}      Paul Qureshi
  38. @{" structures... " Link "Mail_17"}      Alexander Niven-Jenkins
  39. @{" Re: Clipping graphics output " Link "Mail_18"}      Allan Odgaard
  40. @{" Re: Can someone look at this code? " Link "Mail_19"}      Allan Odgaard
  41. @{" Re: Can someone look at this code? " Link "Mail_20"}      Jack York
  42. @{" Re: Can someone look at this code? " Link "Mail_21"}      Colin Wenzel
  43. @{" Re: structures... " Link "Mail_22"}      Gabriele Svelto
  44. @{" Re: structures... " Link "Mail_23"}      Thomas Cobb
  45. @{" Re: Can someone look at this code? " Link "Mail_24"}      Jack York
  46. @{" ObtainBestPen (was: Re: Can someone look at this code?) " Link "Mail_25"}      Allan Odgaard
  47. @{" Re: structures... " Link "Mail_26"}      Allan Odgaard
  48. @{" Re: Can someone look at this code? " Link "Mail_27"}      Colin Wenzel
  49. @{" Re: structures... " Link "Mail_28"}      Serge Tumanyan
  50. @{" Custom screens (was: Re: Can someone look at this code?) " Link "Mail_29"}      Allan Odgaard
  51. @{" Re: Can someone look at this code? " Link "Mail_30"}      Allan Odgaard
  52. @{" Re: Custom screens (was: Re: Can someone look at this code?) " Link "Mail_31"}      David McMinn
  53. @{" Re: Can someone look at this code? " Link "Mail_32"}      Alexander Niven-Jenkins
  54. @{" Re: Custom screens (was: Re: Can someone look at this code?) " Link "Mail_33"}      Alexander Niven-Jenkins
  55. @{" Re: structures... " Link "Mail_34"}      Alexander Niven-Jenkins
  56. @{" Re: Custom screens (was: Re: Can someone look at this code?) " Link "Mail_35"}      Gabriele Svelto
  57. @{" Re: structures... " Link "Mail_36"}      Serge Tumanyan
  58. @{" Re: Custom screens (was: Re: Can someone look at this code?) " Link "Mail_37"}      Colin Wenzel
  59. @{" Re: Can someone look at this code? " Link "Mail_38"}      Allan Odgaard
  60. @{" Re: Custom screens (was: Re: Can someone look at this code?) " Link "Mail_39"}      Allan Odgaard
  61. @{" Re: Custom screens (was: Re: Can someone look at this code?) " Link "Mail_40"}      Allan Odgaard
  62. @{" Re: Custom screens (was: Re: Can someone look at this code?) " Link "Mail_41"}      Allan Odgaard
  63. @{" Re: Custom screens (was: Re: Can someone look at this code?) " Link "Mail_42"}      Colin Wenzel
  64. @{" Re: Re: Custom screens (was: Re: Can someone look at this code?) " Link "Mail_43"}      Gabriele Svelto
  65. @{" GCC link prob " Link "Mail_44"}      Jose Andias
  66. @{" Re: GCC link prob " Link "Mail_45"}      Stephen Illingworth
  67. @{" New poll for amiga-c " Link "Mail_46"}      amiga-c@yahoogroups.com
  68. @{" Re: GCC link prob " Link "Mail_47"}      Jose Andias
  69. @{" Re: ObtainBestPen (was: Re: Can someone look at this code?) " Link "Mail_48"}      Jack York
  70. @{" Re: Can someone look at this code? " Link "Mail_49"}      Jack York
  71. @{" Enforcer, MuForce etc... " Link "Mail_50"}      Alexander Niven-Jenkins
  72. @{" Re: Enforcer, MuForce etc... " Link "Mail_51"}      Christian Hattemer
  73. @{" Re: Re: GCC link prob " Link "Mail_52"}      Gunther Nikl
  74. @{" ObtainBestPen Again " Link "Mail_53"}      Jack York
  75. @{" Re: Who use vbcc (was: Re: Hi, I'm New) " Link "Mail_54"}      Mike Carter
  76. @{" Re: ObtainBestPen Again " Link "Mail_55"}      Allan Odgaard
  77. @{" Re: Who use vbcc (was: Re: Hi, I'm New) " Link "Mail_56"}      Paul Bray
  78. @{" Re: ObtainBestPen Again " Link "Mail_57"}      Colin Wenzel
  79. @{" Re: ObtainBestPen Again " Link "Mail_58"}      Jack York
  80. @{" Re: ObtainBestPen Again " Link "Mail_59"}      Jack York
  81. @{" PIPE and FIFO " Link "Mail_60"}      Fritsch Alexander
  82. @{" Re: PIPE and FIFO " Link "Mail_61"}      Stephen Illingworth
  83. @{" __CHIP " Link "Mail_62"}      "Gonzalez Fernandez, Daniel (ELTEC)"
  84. @{" Re: Re: ObtainBestPen Again " Link "Mail_63"}      Gregory Roberts II
  85. @{" Re: Re: ObtainBestPen Again " Link "Mail_64"}      Gunther Nikl
  86. @{" Re: Re: ObtainBestPen Again " Link "Mail_65"}      Gregory Roberts II
  87. @{" Re: __CHIP " Link "Mail_66"}      Allan Odgaard
  88. @{" Re: Custom screens (was: Re: Can someone look at this code?) " Link "Mail_67"}      Allan Odgaard
  89. @{" Re: Custom screens (was: Re: Can someone look at this code?) " Link "Mail_68"}      Xavier Messersmith
  90. @{" Re: Custom screens (was: Re: Can someone look at this code?) " Link "Mail_69"}      Allan Odgaard
  91. @{" Re: Custom screens (was: Re: Can someone look at this code?) " Link "Mail_70"}      Colin Wenzel
  92. @{" Re: Re: Custom screens (was: Re: Can someone look at this code?) " Link "Mail_71"}      Gunther Nikl
  93. @{" Re: Custom screens (was: Re: Can someone look at this code?) " Link "Mail_72"}      Colin Wenzel
  94. @{" Re: Re: Custom screens (was: Re: Can someone look at this code?) " Link "Mail_73"}      Gregory Roberts II
  95. @{" Cybergraphics/LockBitMapTagList() " Link "Mail_74"}      Gabriele Svelto
  96. @{" Re: ObtainBestPen Again " Link "Mail_75"}      Sensei
  97. @{" Re: Cybergraphics/LockBitMapTagList() " Link "Mail_76"}      Sebastian Jedruszkiewicz
  98. @{" Re: Custom screens (was: Re: Can someone look at this code?) " Link "Mail_77"}      Xavier Messersmith
  99. @{" Re: Cybergraphics/LockBitMapTagList() " Link "Mail_78"}      Gabriele Svelto
  100. @{" Re: Cybergraphics/LockBitMapTagList() " Link "Mail_79"}      Sebastian Jedruszkiewicz
  101. @{" Re: Cybergraphics/LockBitMapTagList() " Link "Mail_80"}      Sensei
  102. @{" Re: Custom screens (was: Re: Can someone look at this code?) " Link "Mail_81"}      Colin Wenzel
  103. @{" sas-c " Link "Mail_82"}      Martin Randall
  104. @{" Datatypes Pic " Link "Mail_83"}      Ren
  105. @{" Re: ObtainBestPen Again " Link "Mail_84"}      Jack York
  106. @{" Alloc/Free___ Chip memory fragmentation " Link "Mail_85"}      William Robinson
  107. @{" Re: Datatypes Pic " Link "Mail_86"}      Allan Odgaard
  108. @{" Starting from WB & CLI " Link "Mail_87"}      Christophe Ochal
  109. @{" Re: hypercom3+ +parallel port " Link "Mail_88"}      Mike Carter
  110. @{" Re: Starting from WB & CLI " Link "Mail_89"}      Jay Cornwall
  111. @{" Re: Datatypes Pic " Link "Mail_90"}      Ren
  112. @{" Re: Re: ObtainBestPen Again " Link "Mail_91"}      Sensei
  113. @{" Re: Alloc/Free___ Chip memory fragmentation " Link "Mail_92"}      Sensei
  114. @{" sas-c " Link "Mail_93"}      Martin Randall
  115. @{" Re: sas-c " Link "Mail_94"}      Martin Randall
  116. @{" sas-c " Link "Mail_95"}      Tak Tang
  117. @{" Re: Alloc/Free___ Chip memory fragmentation " Link "Mail_96"}      William Robinson
  118. @{" Re: Alloc/Free___ Chip memory fragmentation " Link "Mail_97"}      Gabriele Svelto
  119. @{" Re: Alloc/Free___ Chip memory fragmentation " Link "Mail_98"}      Rod Schnell
  120. @{" Re: Re: Alloc/Free___ Chip memory fragmentation " Link "Mail_99"}      Rod Schnell
  121. @{" Re: Re: Alloc/Free___ Chip memory fragmentation " Link "Mail_100"}      Gabriele Svelto
  122. @{" Re: sas-c " Link "Mail_101"}      Martin Randall
  123. @{" Re: Re: Alloc/Free___ Chip memory fragmentation " Link "Mail_102"}      Rod Schnell
  124. @{" Re: Alloc/Free___ Chip memory fragmentation " Link "Mail_103"}      Sensei
  125. @{" Re: Datatypes Pic " Link "Mail_104"}      Shinda
  126. @{" Re: Alloc/Free___ Chip memory fragmentation " Link "Mail_105"}      Xavier Messersmith
  127. @{" Re: Re: Alloc/Free___ Chip memory fragmentation " Link "Mail_106"}      Gabriele Svelto
  128. @{" Help with gcc " Link "Mail_107"}      DonaldWM@stonelawdrive.freeserve.co.uk
  129. @{" Re: Help with gcc " Link "Mail_108"}      Shinda
  130. @{" Re: Alloc/Free___ Chip memory fragmentation " Link "Mail_109"}      Sensei
  131. @{" Re: Help with gcc " Link "Mail_110"}      Stephen Illingworth
  132. @{" ExAll() Compatability " Link "Mail_111"}      Mike Carter
  133. @{" Re: ExAll() Compatability " Link "Mail_112"}      Colin Wenzel
  134. @{" Guigfx author " Link "Mail_113"}      Mike Carter
  135. @{" Re: Help with gcc " Link "Mail_114"}      Laurent FAILLIE
  136. @{" Re: Datatypes Pic " Link "Mail_115"}      Ren
  137. @{" Re: ExAll() Compatability " Link "Mail_116"}      Ilkka Lehtoranta
  138. @{" MUI " Link "Mail_117"}      Joris Kempen
  139. @{" Re: MUI " Link "Mail_118"}      Joris Kempen
  140. @{" Re: MUI " Link "Mail_119"}      torrelli@mctel.fr
  141. @{" Re: Datatypes Pic " Link "Mail_120"}      Shinda
  142. @{" Re: ExAll() Compatability " Link "Mail_121"}      Allan Odgaard
  143. @{" Programmer == User? (was: Re: Custom screens) " Link "Mail_122"}      Allan Odgaard
  144. @{" chip memory defragmentation " Link "Mail_123"}      William Robinson
  145. @{" chip memory defragmentation " Link "Mail_124"}      William Robinson
  146. @{" Re: chip memory defragmentation " Link "Mail_125"}      Colin Wenzel
  147. @{" Re: Nowt'werking " Link "Mail_126"}      Tim Hanson
  148. @{" Re: chip memory defragmentation " Link "Mail_127"}      Sensei
  149. @{" Again clipping graphics output " Link "Mail_128"}      Serge Tumanyan
  150. @{" Integrity checker for AVI files? " Link "Mail_129"}      Fritsch Alexander
  151. @{" Re: Integrity checker for AVI files? " Link "Mail_130"}      Paul Hill
  152. @{" Re: Again clipping graphics output " Link "Mail_131"}      Allan Odgaard
  153. @{" StormC debug vars " Link "Mail_132"}      Joris Kempen
  154. @{" imagepool.library & Transparency " Link "Mail_133"}      David Arbuthnot
  155. @{" Re: Integrity checker for AVI files? " Link "Mail_134"}      Sebastian Jedruszkiewicz
  156. @{" Re: Again clipping graphics output " Link "Mail_135"}      Serge Tumanyan
  157. @{" Re: imagepool.library & Transparency " Link "Mail_136"}      Allan Odgaard
  158. @{" Re: Again clipping graphics output " Link "Mail_137"}      Sensei
  159. @{" Re: imagepool.library & Transparency " Link "Mail_138"}      David Arbuthnot
  160. @{" Re: imagepool.library & Transparency " Link "Mail_139"}      David Arbuthnot
  161. @{" SOT: Programmers required : Amiga port of MIDI player " Link "Mail_140"}      Mark Smith
  162. @{" Re: imagepool.library & Transparency " Link "Mail_141"}      Allan Odgaard
  163. @{" Re: Re: chip memory defragmentation " Link "Mail_142"}      William Robinson
  164. @{" Re: imagepool.library & Transparency " Link "Mail_143"}      Shinda
  165. @{" Re: chip memory defragmentation " Link "Mail_144"}      Sensei
  166. @{" Re: Again clipping graphics output " Link "Mail_145"}      Serge Tumanyan
  167. @{" Screens and IDCMP " Link "Mail_146"}      Joris Kempen
  168. @{" Re: Screens and IDCMP " Link "Mail_147"}      David Arbuthnot
  169. @{" Re: Help with gcc " Link "Mail_148"}      DonaldWM@stonelawdrive.freeserve.co.uk
  170. @{" Re: Help with gcc " Link "Mail_149"}      Shinda
  171. @{" Re: Screens and IDCMP " Link "Mail_150"}      Ilkka Lehtoranta
  172. @{" Re: Again clipping graphics output " Link "Mail_151"}      Allan Odgaard
  173. @{" bsd socket library " Link "Mail_152"}      Andrew Markwell
  174. @{" "#define" for code " Link "Mail_153"}      Andrew Crowe
  175. @{" Re: bsd socket library " Link "Mail_154"}      Stephen Illingworth
  176. @{" Re: Again clipping graphics output " Link "Mail_155"}      Sensei
  177. @{" Re: Again clipping graphics output " Link "Mail_156"}      Serge Tumanyan
  178. @{" Re: Re: bsd socket library " Link "Mail_157"}      Andrew Markwell
  179. @{" Re: "#define" for code " Link "Mail_158"}      Andrew Markwell
  180. @{" Re: "#define" for code " Link "Mail_159"}      egroups@wuggy.co.uk
  181. @{" Re: bsd socket library " Link "Mail_160"}      Stephen Illingworth
  182. @{" RtgMaster Window problem. " Link "Mail_161"}      lazarus2000@btinternet.com
  183. @{" Inline ASM in StormC 3 " Link "Mail_162"}      Andrew Crowe
  184. @{" Re: Again clipping graphics output " Link "Mail_163"}      Allan Odgaard
  185. @{" Re: "#define" for code " Link "Mail_164"}      Allan Odgaard
  186. @{" Re: Again clipping graphics output " Link "Mail_165"}      Serge Tumanyan
  187. @{" Re: Re: Again clipping graphics output " Link "Mail_166"}      Sensei
  188. @{" iff.library " Link "Mail_167"}      Filip 
  189. @{" Re: iff.library " Link "Mail_168"}      David McMinn
  190. @{" Members Postings Going to Aminet " Link "Mail_169"}      Colin Wenzel
  191. @{" gtlayout and vbcc " Link "Mail_170"}      Giles Burdett
  192. @{" Re: Members Postings Going to Aminet " Link "Mail_171"}      Giles Burdett
  193. @{" Re: Re: Members Postings Going to Aminet " Link "Mail_172"}      David McMinn
  194. @{" Re: gtlayout and vbcc " Link "Mail_173"}      David McMinn
  195. @{" Re: Members Postings Going to Aminet " Link "Mail_174"}      Fritsch Alexander
  196. @{" Re: gtlayout and vbcc " Link "Mail_175"}      Volker Barthelmann
  197. @{" Re: Help with gcc " Link "Mail_176"}      DonaldWM@stonelawdrive.freeserve.co.uk
  198. @{" Re: Again clipping graphics output " Link "Mail_177"}      Allan Odgaard
  199. @{" Impossible MuForce hit " Link "Mail_178"}      Ilkka Lehtoranta
  200. @{" Re: Help with gcc " Link "Mail_179"}      Shinda
  201. @{" Re: Impossible MuForce hit " Link "Mail_180"}      Sebastian Jedruszkiewicz
  202. @{" Re: Cybergraphics/LockBitMapTagList() " Link "Mail_181"}      Tim Hanson
  203. @{" Re: Alloc/Free___ Chip memory fragmentation " Link "Mail_182"}      Tim Hanson
  204. @{" Re: Starting from WB & CLI " Link "Mail_183"}      Tim Hanson
  205. @{" Re: Re: Impossible MuForce hit " Link "Mail_184"}      Gunther Nikl
  206. @{" Re: Members Postings Going to Aminet " Link "Mail_185"}      Stephen Illingworth
  207. @{" Re: Tasks vs. Threads " Link "Mail_186"}      Stephen Illingworth
  208. @{" Tasks vs. Threads " Link "Mail_187"}      Gabriele Svelto
  209. @{" Re: Re: Alloc/Free___ Chip memory fragmentation " Link "Mail_188"}      William Robinson
  210. @{" Re: [amiga-c] " Link "Mail_189"}      j.adelman@ukonline.co.uk
  211. @{" includes and stuff " Link "Mail_190"}      Joris Kempen
  212. @{" Re: Tasks vs. Threads " Link "Mail_191"}      Steven Solie
  213. @{" Re: includes and stuff " Link "Mail_192"}      Laurent FAILLIE
  214. @{" Re: includes and stuff " Link "Mail_193"}      egroups@wuggy.co.uk
  215. @{" Re: Again clipping graphics output " Link "Mail_194"}      Serge Tumanyan
  216. @{" Re: Again clipping graphics output " Link "Mail_195"}      Serge Tumanyan
  217. @{" Re: includes and stuff " Link "Mail_196"}      Alexander Niven-Jenkins
  218. @{" Re: Re: Members Postings Going to Aminet " Link "Mail_197"}      Rod Schnell
  219. @{" Amiga types and strings " Link "Mail_198"}      Joris Kempen
  220. @{" Re: Again clipping graphics output " Link "Mail_199"}      Sensei
  221. @{" Re: Re: Again clipping graphics output " Link "Mail_200"}      Gunther Nikl
  222. @{" Re: Members Postings Going to Aminet " Link "Mail_201"}      "MACLEAN,RODERICK (A-Scotland,ex1)"
  223. @{" Re: Tasks vs. Threads " Link "Mail_202"}      Gabriele Svelto
  224. @{" Re: Tasks vs. Threads " Link "Mail_203"}      Gabriele Svelto
  225. @{" Re: Amiga types and strings " Link "Mail_204"}      David McMinn
  226. @{" Re: Amiga types and strings " Link "Mail_205"}      Gabriele Svelto
  227. @{" Re: Amiga types and strings " Link "Mail_206"}      Laurent FAILLIE
  228. @{" Re: Re: Tasks vs. Threads " Link "Mail_207"}      Laurent FAILLIE
  229. @{" League fixture generation. " Link "Mail_208"}      Tim Hanson
  230. @{" Anyone interested in writing a C-Amiga book? " Link "Mail_209"}      "Dr.BrainDamage"
  231. @{" Re: Members Postings Going to Aminet " Link "Mail_210"}      Tim Hanson
  232. @{" Re: Pseudo-OO in C [was includes and stuff] " Link "Mail_211"}      "Alastair M. Robinson"
  233. @{" Re: Again clipping graphics output " Link "Mail_212"}      Serge Tumanyan
  234. @{" Re: League fixture generation. " Link "Mail_213"}      Allan Odgaard
  235. @{" Re: Anyone interested in writing a C-Amiga book? " Link "Mail_214"}      Allan Odgaard
  236. @{" Re: Again clipping graphics output " Link "Mail_215"}      Allan Odgaard
  237. @{" Re: Anyone interested in writing a C-Amiga book? " Link "Mail_216"}      Christian Hattemer
  238. @{" Re: Anyone interested in writing a C-Amiga book? " Link "Mail_217"}      Rod Schnell
  239. @{" Re: Re: Anyone interested in writing a C-Amiga book? " Link "Mail_218"}      Rod Schnell
  240. @{" Re: Anyone interested in writing a C-Amiga book? " Link "Mail_219"}      Mike Carter
  241. @{" Poll results for amiga-c " Link "Mail_220"}      amiga-c@yahoogroups.com
  242. @{" opening the parallel.device " Link "Mail_221"}      jimbot@rconnect.com
  243. @{" Re: Anyone interested in writing a C-Amiga book? " Link "Mail_222"}      Fritsch Alexander
  244. @{" Re: Anyone interested in writing a C-Amiga book? " Link "Mail_223"}      kevin.bewley@camr.org.uk
  245. @{" Re: date/time " Link "Mail_224"}      Colin Wenzel
  246. @{" Re: Re: date/time " Link "Mail_225"}      David McMinn
  247. @{" RE: iff.library " Link "Mail_226"}      Filip 
  248. @{" Re[2]: iff.library " Link "Mail_227"}      Backa
  249. @{" RE: Re[2]: iff.library " Link "Mail_228"}      Filip 
  250. @{" Re: iff.library " Link "Mail_229"}      Shinda
  251. @{" RE: Re[2]: iff.library " Link "Mail_230"}      Laurent FAILLIE
  252. @{" Re: Re: Anyone interested in writing a C-Amiga book? " Link "Mail_231"}      Mathias PARNAUDEAU
  253. @{" Re: Re: Anyone interested in writing a C-Amiga book? " Link "Mail_232"}      Mathias PARNAUDEAU
  254. @{" Link together C and C++ " Link "Mail_233"}      Vassili Smirnov
  255. @{" OT: Amiga SDK " Link "Mail_234"}      Paul Bray
  256. @{" OT: Amiga SDK " Link "Mail_235"}      Paul Bray
  257. @{" Re: Link together C and C++ " Link "Mail_236"}      Gunther Nikl
  258. @{" FW: Re: iff.library " Link "Mail_237"}      Filip 
  259. @{" Re: iff.library " Link "Mail_238"}      "MACLEAN,RODERICK (A-Scotland,ex1)"
  260. @{" RE: Re: iff.library " Link "Mail_239"}      Filip 
  261. @{" Re: Link together C and C++ " Link "Mail_240"}      Laurent FAILLIE
  262. @{" Re[2]: Link together C and C++ " Link "Mail_241"}      Backa
  263. @{" Re: Re[2]: Link together C and C++ " Link "Mail_242"}      Laurent FAILLIE
  264. @{" Re: Link together C and C++ " Link "Mail_243"}      Stephen Illingworth
  265. @{" Re: C-Amiga book? " Link "Mail_244"}      "Dr.BrainDamage"
  266. @{" Re: iff.library " Link "Mail_245"}      Joris Kempen
  267. @{" Re: C-Amiga book? " Link "Mail_246"}      Mike Carter
  268. @{" iff.library example " Link "Mail_247"}      Joris Kempen
  269. @{" RE: Re: iff.library " Link "Mail_248"}      Filip 
  270. @{" Picasso96 DrawImage() Problem " Link "Mail_249"}      Rory Dawson
  271. @{" Re: C-Amiga book? " Link "Mail_250"}      "Alastair M. Robinson"
  272. @{" Ellipsis notation with interactive commands (style-guide issue) " Link "Mail_251"}      Allan Odgaard
  273. @{" Re: Ellipsis notation with interactive commands (style-guide issue) " Link "Mail_252"}      Rod Schnell
  274. @{" Re: Ellipsis notation with interactive commands (style-guide issue) " Link "Mail_253"}      Rory Dawson
  275. @{" Re: Ellipsis notation with interactive commands (style-guide issue) " Link "Mail_254"}      Colin Wenzel
  276. @{" RE: iff.library example " Link "Mail_255"}      Filip 
  277. @{" Re: Alloc/Free___ Chip memory fragmentation " Link "Mail_256"}      Tim Hanson
  278. @ENDNODE
  279. @NODE "Mail_0" " Can someone look at this code? "
  280. Date: 02-01-01 01:09:31
  281. Subject: @{b}Can someone look at this code?@{ub}
  282. Hello,
  283. I'm still trying to figure out the problem I am having with colors
  284. changing in my screen when I use SA_SharePens.  I've made up 
  285. a quick example of the problem and posted it at
  286. http://my.voyager.net/~jyork
  287. If someone could take a look at it and see where the problem is
  288. at I would greatly appreciate it.  
  289. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  290. eGroups is now Yahoo! Groups
  291. Click here for more details
  292. http://click.egroups.com/1/11231/0/_/451227/_/980990033/
  293. ---------------------------------------------------------------------_->
  294. @ENDNODE
  295. @NODE "Mail_1" " Re: Can someone look at this code? "
  296. Date: 02-01-01 04:01:54
  297. Subject: @{b}Re: Can someone look at this code?@{ub}
  298. Hello Giles
  299. On 31-Jan-01, Giles Burdett wrote:
  300. >> I'm still trying to figure out the problem I am having with colors
  301. >> changing in my screen when I use SA_SharePens.  I've made up 
  302. >> a quick example of the problem and posted it at
  303. >> http://my.voyager.net/~jyork
  304. >> If someone could take a look at it and see where the problem is
  305. >> at I would greatly appreciate it.  
  306. > Just tried your program, and the executable in the archive doesn't have
  307. > the problem you describe. In the source, the only occurence of
  308. > WA_SharePens is in the comment at the top of the file! Was this intended?
  309. No, just fat fingers and slow eyes. :/  It should have been SA_SharePens.  I
  310. download it myself and the code is correct.  It's one of the screen tags
  311. clip from it below).  But are you sure about the executable?  I just ran the
  312. I downloaded and it failed as I described.  Are you pressing the right mouse
  313. button?  When I start it on my system the background of the exit gadget is 
  314. white.  When I press the rmb it changes to blue and then different colors 
  315. with each additional click.
  316.      if ((scr = OpenScreenTags(NULL,  SA_DisplayID,    HIRES | LACE,
  317.                                       SA_PubName,      "MyScreen",
  318.                                       SA_Depth,        4,
  319.                                       SA_Colors,       colorspecs,
  320.                                       SA_Overscan,     OSCAN_TEXT,
  321.                                       SA_Pens,         (ULONG)pens,
  322.                                       SA_SharePens,    TRUE,   // problem
  323. goes away if removed
  324.                                       SA_AutoScroll,   TRUE,
  325.                                       TAG_DONE)))
  326. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  327. eGroups is now Yahoo! Groups
  328. Click here for more details
  329. http://click.egroups.com/1/11231/0/_/451227/_/981000376/
  330. ---------------------------------------------------------------------_->
  331. @ENDNODE
  332. @NODE "Mail_2" " Re: Can someone look at this code? "
  333. Date: 02-01-01 04:43:18
  334. Subject: @{b}Re: Can someone look at this code?@{ub}
  335. Hi Jack,
  336. On 01-Feb-01, you wrote:
  337. > Hello,
  338. > I'm still trying to figure out the problem I am having with colors
  339. > changing in my screen when I use SA_SharePens.  I've made up 
  340. > a quick example of the problem and posted it at
  341. > http://my.voyager.net/~jyork
  342. > If someone could take a look at it and see where the problem is
  343. > at I would greatly appreciate it.  
  344. Just tried your program, and the executable in the archive doesn't have the
  345. problem you describe. In the source, the only occurence of WA_SharePens is
  346. in the comment at the top of the file! Was this intended?
  347. Regards,
  348. Giles Burdett
  349. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  350. eGroups is now Yahoo! Groups
  351. Click here for more details
  352. http://click.egroups.com/1/11231/0/_/451227/_/980999013/
  353. ---------------------------------------------------------------------_->
  354. @ENDNODE
  355. @NODE "Mail_3" " Re: Can someone look at this code? "
  356. Date: 02-01-01 04:01:54
  357. Subject: @{b}Re: Can someone look at this code?@{ub}
  358. Hello Giles
  359. On 31-Jan-01, Giles Burdett wrote:
  360. >> I'm still trying to figure out the problem I am having with colors
  361. >> changing in my screen when I use SA_SharePens.  I've made up 
  362. >> a quick example of the problem and posted it at
  363. >> http://my.voyager.net/~jyork
  364. >> If someone could take a look at it and see where the problem is
  365. >> at I would greatly appreciate it.  
  366. > Just tried your program, and the executable in the archive doesn't have
  367. > the problem you describe. In the source, the only occurence of
  368. > WA_SharePens is in the comment at the top of the file! Was this intended?
  369. No, just fat fingers and slow eyes. :/  It should have been SA_SharePens.  I
  370. download it myself and the code is correct.  It's one of the screen tags
  371. clip from it below).  But are you sure about the executable?  I just ran the
  372. I downloaded and it failed as I described.  Are you pressing the right mouse
  373. button?  When I start it on my system the background of the exit gadget is 
  374. white.  When I press the rmb it changes to blue and then different colors 
  375. with each additional click.
  376.      if ((scr = OpenScreenTags(NULL,  SA_DisplayID,    HIRES | LACE,
  377.                                       SA_PubName,      "MyScreen",
  378.                                       SA_Depth,        4,
  379.                                       SA_Colors,       colorspecs,
  380.                                       SA_Overscan,     OSCAN_TEXT,
  381.                                       SA_Pens,         (ULONG)pens,
  382.                                       SA_SharePens,    TRUE,   // problem
  383. goes away if removed
  384.                                       SA_AutoScroll,   TRUE,
  385.                                       TAG_DONE)))
  386. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  387. eGroups is now Yahoo! Groups
  388. Click here for more details
  389. http://click.egroups.com/1/11231/0/_/451227/_/981000376/
  390. ---------------------------------------------------------------------_->
  391. @ENDNODE
  392. @NODE "Mail_4" " Clipping graphics output "
  393. Date: 02-01-01 11:53:16
  394. Subject: @{b}Clipping graphics output@{ub}
  395. Hello All.
  396. Does anybody knows how to force the functions of graphic library to render
  397. only inside the RastPort? The simple example of what I mean 
  398. is the following: if I open the window, and render outside its bounds, the
  399. result would be perfect, the rendering will be clipped on the 
  400. bounds. But if I create a RastPort and make InitRastPort() and render 
  401. in it, result would not be so perfect, if I go out the bounds, the innocent
  402. memory would be trashed, and the output would not be clipped.
  403. What am I doing wrong?
  404. Regards
  405. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  406. eGroups is now Yahoo! Groups
  407. Click here for more details
  408. http://click.egroups.com/1/11231/0/_/451227/_/981026742/
  409. ---------------------------------------------------------------------_->
  410. @ENDNODE
  411. @NODE "Mail_5" " Re: Can someone look at this code? "
  412. Date: 02-01-01 12:24:09
  413. Subject: @{b}Re: Can someone look at this code?@{ub}
  414. Hello Jack,
  415. > No, just fat fingers and slow eyes. :/ It should have been
  416. > SA_SharePens. [...]
  417. >     [...]
  418. >           SA_Colors,    colorspecs,
  419. >           SA_SharePens, TRUE, // problem goes away if removed
  420. As I understand it, setting SharePens will only make intuition allocate
  421. the pens used for the DrawInfo-structure, thus the colours you supply
  422. with SA_Colors are only stored (i.e. using LoadRGB()) but not locked.
  423. So if someone opens a window on your screen and calls ObtainBestPen(),
  424. it'll use your preset colours (and I imagine you have MagicMenu running,
  425. which'll do this when you press rmb).
  426. Kind regards Allan
  427. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  428. eGroups is now Yahoo! Groups
  429. Click here for more details
  430. http://click.egroups.com/1/11231/0/_/451227/_/981028566/
  431. ---------------------------------------------------------------------_->
  432. @ENDNODE
  433. @NODE "Mail_6" " Re: Can someone look at this code? "
  434. Date: 02-01-01 12:56:29
  435. Subject: @{b}Re: Can someone look at this code?@{ub}
  436. Hello Allan
  437. On 01-Feb-01, Allan Odgaard wrote:
  438. > Hello Jack,
  439. >> No, just fat fingers and slow eyes. :/ It should have been
  440. >> SA_SharePens. [...]
  441. >>     [...]
  442. >>           SA_Colors,    colorspecs,
  443. >>           SA_SharePens, TRUE, // problem goes away if removed
  444. > As I understand it, setting SharePens will only make intuition allocate
  445. > the pens used for the DrawInfo-structure, thus the colours you supply
  446. > with SA_Colors are only stored (i.e. using LoadRGB()) but not locked.
  447. > So if someone opens a window on your screen and calls ObtainBestPen(),
  448. > it'll use your preset colours (and I imagine you have MagicMenu running,
  449. > which'll do this when you press rmb).
  450. Sounds like it could be the case since another way I can make it fail is by
  451. calling a requester generated by Reaction.  So, do you know how I go about
  452. locking the pens?  
  453. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  454. eGroups is now Yahoo! Groups
  455. Click here for more details
  456. http://click.egroups.com/1/11231/0/_/451227/_/981032449/
  457. ---------------------------------------------------------------------_->
  458. @ENDNODE
  459. @NODE "Mail_7" " Re: Clipping graphics output "
  460. Date: 02-01-01 14:01:28
  461. Subject: @{b}Re: Clipping graphics output@{ub}
  462. On 01-Feb-01, Serge Tumanyan wrote:
  463. > Hello All.
  464. > Does anybody knows how to force the functions of graphic library to
  465. > render only inside the RastPort? The simple example of what I mean is
  466. > the following: if I open the window, and render outside its bounds,
  467. > the result would be perfect, the rendering will be clipped on the
  468. > bounds. But if I create a RastPort and make InitRastPort() and render
  469. > in it, result would not be so perfect, if I go out the bounds, the
  470. > innocent memory would be trashed, and the output would not be
  471. > clipped. What am I doing wrong?
  472. > Regards
  473. AFAIK,  the only way is to parse your co-ordinates so that
  474. you just don't render outside of your own memory.
  475. The same happens nicely using RectFill() with bad co-ords,
  476. if you want to see some trashed memory pyrotechnics...
  477. Regards
  478. _________________________________________
  479. Colin Wenzel.  Quensland, Australia.
  480. EMAIL:  colstv@hotkey.net.au
  481. URL:       http://www.hotkey.net.au/~colstv/
  482. AMIGA: 4000T,  68060/50,  150Mb RAM,  
  483.                OS 3.9,  Spectrum Gfx Card + P96.
  484. Need an Image Generator For CATV  ??
  485.        http://connect.to/products
  486. _________________________________________
  487. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  488. eGroups is now Yahoo! Groups
  489. Click here for more details
  490. http://click.egroups.com/1/11231/0/_/451227/_/981032934/
  491. ---------------------------------------------------------------------_->
  492. @ENDNODE
  493. @NODE "Mail_8" " Re: Can someone look at this code? "
  494. Date: 02-01-01 14:19:59
  495. Subject: @{b}Re: Can someone look at this code?@{ub}
  496. Hi Jack,
  497. On 01-Feb-01, you wrote:
  498. > Are you pressing the right mouse button? When I start it on my system the
  499. > background of the exit gadget is white. When I press the rmb it changes to
  500. > blue and then different colors with each additional click.
  501. No, when I ran it (and I have magic menu running too), the background odf
  502. the button was always white, and the borders of the window were pink. When I
  503. press LMB over gadget it goes pink too, then back to white. When I used the
  504. RMB, the gadget stayed white - no change in colour at all. I'm running OS3.5
  505. (no boing bags installed). 
  506. Regards,
  507. Giles Burdett
  508. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  509. eGroups is now Yahoo! Groups
  510. Click here for more details
  511. http://click.egroups.com/1/11231/0/_/451227/_/981033680/
  512. ---------------------------------------------------------------------_->
  513. @ENDNODE
  514. @NODE "Mail_9" " Re: Can someone look at this code? "
  515. Date: 02-01-01 14:41:47
  516. Subject: @{b}Re: Can someone look at this code?@{ub}
  517. On 01-Feb-01, Giles Burdett wrote:
  518. -snip-
  519. >I'm running OS3.5 (no boing bags installed).
  520. Hmm,  No BB's,  that's not terribly wise,
  521. there were a LOT of bugs fixed with the 2 boing bags,
  522. you would be heaps better off installing them, 
  523. I can tell you that from personal experience..
  524. (Just keep the original  "FKey" program,  
  525.   that's still a little unwell in the "SAVE" department.. )
  526. Regards
  527. _________________________________________
  528. Colin Wenzel.  Quensland, Australia.
  529. EMAIL:  colstv@hotkey.net.au
  530. URL:       http://www.hotkey.net.au/~colstv/
  531. AMIGA: 4000T,  68060/50,  150Mb RAM,  
  532.                OS 3.9,  Spectrum Gfx Card + P96.
  533. Need an Image Generator For CATV  ??
  534.        http://connect.to/products
  535. _________________________________________
  536. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  537. eGroups is now Yahoo! Groups
  538. Click here for more details
  539. http://click.egroups.com/1/11231/0/_/451227/_/981035381/
  540. ---------------------------------------------------------------------_->
  541. @ENDNODE
  542. @NODE "Mail_10" " Re: Can someone look at this code? "
  543. Date: 02-01-01 16:58:12
  544. Subject: @{b}Re: Can someone look at this code?@{ub}
  545. Hello Jack,
  546. >> As I understand it, setting SharePens will only make intuition
  547. >> allocate the pens used for the DrawInfo-structure, thus the colours
  548. >> you supply with SA_Colors are only stored (i.e. using LoadRGB())
  549. > Sounds like it could be the case since another way I can make it fail
  550. > is by calling a requester generated by Reaction. So, do you know how I
  551. > go about locking the pens?
  552. Either use graphics.library/ObtainPen or don't set SA_SharePens.
  553. The best is of course to use ObtainBestPen for all your colours to get
  554. optimal pen sharing.
  555. Kind regards Allan
  556. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  557. eGroups is now Yahoo! Groups
  558. Click here for more details
  559. http://click.egroups.com/1/11231/0/_/451227/_/981043764/
  560. ---------------------------------------------------------------------_->
  561. @ENDNODE
  562. @NODE "Mail_11" " Re: Clipping graphics output "
  563. Date: 02-01-01 17:01:53
  564. Subject: @{b}Re: Clipping graphics output@{ub}
  565. Hello Serge,
  566. > Does anybody knows how to force the functions of graphic library to
  567. > render only inside the RastPort? [...] if I create a RastPort and
  568. > make InitRastPort() and render in it, result would not be so perfect,
  569. > [...] and the output would not be clipped. What am I doing wrong?
  570. The thing is that rastports without a layer structure won't enjoy
  571. clipping.
  572. There's no system friendly way to attach a layer to an offscreen
  573. rastport. But in practise it's quite simple. But tt's not something I
  574. do, as it is not really a documented feature of the OS.
  575. Kind regards Allan
  576. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  577. eGroups is now Yahoo! Groups
  578. Click here for more details
  579. http://click.egroups.com/1/11231/0/_/451227/_/981043759/
  580. ---------------------------------------------------------------------_->
  581. @ENDNODE
  582. @NODE "Mail_12" " Re: Can someone look at this code? "
  583. Date: 02-01-01 19:19:58
  584. Subject: @{b}Re: Can someone look at this code?@{ub}
  585. Hello Giles
  586. On 01-Feb-01, Giles Burdett wrote:
  587. >> Are you pressing the right mouse button? When I start it on my system the
  588. >> background of the exit gadget is white. When I press the rmb it changes
  589. >> to blue and then different colors with each additional click.
  590. > No, when I ran it (and I have magic menu running too), the background odf
  591. > the button was always white, and the borders of the window were pink. When
  592. > I press LMB over gadget it goes pink too, then back to white. When I used
  593. > the RMB, the gadget stayed white - no change in colour at all. I'm running
  594. > OS3.5 (no boing bags installed).
  595. Umm, I never thought to test it other an older OS.  I am running 3.9.  I
  596. tried booting with 3.5 and it still failed for me but I had updated the
  597. gadgets 
  598. awhile back so they are probably a later version than you have
  599. (button.gadget 
  600. 44.12 and window.class 45.3).   I did boot under 3.1 and it worked ok.   But
  601. AWeb uses Reaction and it recognizes the prefs settings so it must not be a 
  602. Reaction problem.
  603. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  604. eGroups is now Yahoo! Groups
  605. Click here for more details
  606. http://click.egroups.com/1/11231/0/_/451227/_/981056011/
  607. ---------------------------------------------------------------------_->
  608. @ENDNODE
  609. @NODE "Mail_13" " Re: Clipping graphics output "
  610. Date: 02-01-01 19:32:14
  611. Subject: @{b}Re: Clipping graphics output@{ub}
  612. Czesc Serge!
  613. Dnia 01-Lut-01, Serge Tumanyan napisa
  614. >Does anybody knows how to force the functions of graphic library to render
  615. >only inside the RastPort? The simple example of what I mean 
  616. >is the following: if I open the window, and render outside its bounds, the
  617. >result would be perfect, the rendering will be clipped on the 
  618. >bounds. But if I create a RastPort and make InitRastPort() and render 
  619. >in it, result would not be so perfect, if I go out the bounds, the innocent
  620. >memory would be trashed, and the output would not be clipped.
  621. >What am I doing wrong?
  622. You have not layer attached to your's rastport. Try below code:
  623. struct Layer_Info *layerinfo;
  624. struct RastPort rastport = { 0 };
  625. InitRastPort( &rastport );
  626. if( rastport.BitMap = AllocBitMap( width, height, depth, 0, NULL ) )
  627.    if( layerinfo = NewLayerInfo() )
  628.       if( rastport.Layer = CreateUpfrontLayer( layerinfo, rastport.BitMap, 0,
  629. 0, width-1, height-1, LAYERSMART, NULL ) )
  630.       {
  631. #define USE_REGIONS
  632.          struct Region *region;
  633.          if( region = NewRegion() )
  634.          {
  635.             struct Rectangle rect;
  636.             rect.MinX = 0;
  637.             rect.MinY = 0;
  638.             rect.MaxX = width - 1;
  639.             rect.MaxY = height - 1;
  640.             if( OrRectRegion( region, &rect ) )
  641.             {
  642.                oldregion = InstallClipRegion( rastport.Layer, region );
  643. #endif /* USE_REGIONS */
  644.                /*
  645.                 * Render wherever you want in rastport.
  646.                 * Don't touch bitmap or clip it by hand!
  647.                 */
  648. #ifdef USE_REGIONS
  649.                InstallClipRegion( rastport.Layer, oldregion );
  650.             }
  651.             DisposeRegion( region );
  652.          }
  653. #endif /* USE_REGIONS */
  654.          DeleteLayer( layerinfo, rastport.Layer );
  655.       }
  656.       DisposeLayerInfo( layerinfo );
  657.    FreeBitMap( rastport.BitMap );
  658. Try it with USE_REGIONS and without USE_REGION definition.
  659. Instead using layers.library functions you can clip it by hand.
  660. Regards!
  661. Can your ImageFX paint like bitmap painters?
  662. Download: gfx/ifx/REDFiX.lha, ftp.novadesign.com
  663. Przemyslaw 'SENSEI' Gruchala
  664. code/gfx2d/gfx3d/webmaster
  665. Amiga 1200
  666. Apollo 1240/33 MHz, 18 MB RAM, BTC 33.6 bps
  667. HDD 3.2 GB, HDD 520 MB, CD x12
  668. Promocja GE Banku Mieszkaniowego: 0,- zl oplaty dla klientow Getin.pl
  669. Kredyt mieszkaniowy do 100% inwestycji, do 20 lat, bez poreczycieli.
  670. Wystarczy wyslac zgloszenie: http://www.getin.pl/ge/ankieta/ankieta.asp
  671. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  672. eGroups is now Yahoo! Groups
  673. Click here for more details
  674. http://click.egroups.com/1/11231/0/_/451227/_/981056387/
  675. ---------------------------------------------------------------------_->
  676. @ENDNODE
  677. @NODE "Mail_14" " Re: Re: Clipping graphics output "
  678. Date: 02-01-01 19:32:38
  679. Subject: @{b}Re: Re: Clipping graphics output@{ub}
  680. Czesc Allan!
  681. Dnia 01-Lut-01, Allan Odgaard napisa
  682. >There's no system friendly way to attach a layer to an offscreen
  683. >rastport. But in practise it's quite simple.
  684. Could you explain it a bit more clearly? Why using layers.library functions in
  685. normal program isn't system friendly? And where I can read about it?
  686. > But tt's not something I
  687. >do, as it is not really a documented feature of the OS.
  688. Layers.library is documented very well I think... I can even create my own
  689. window system (instead of Intuition Windows) using this functions, so why you
  690. wrote that it's not system friendly?
  691. In AmigaOS low level functions for graphics are provided in graphics.library
  692. and layers.library. Next level is provided by intuition.library and you can
  693. use windows and screens created by it, but you're not forced to do it! If you
  694. want you can create your own intuition.library which will play with low level
  695. and it'll be (if you won't hack it) system friendly...
  696. Of course such own "intuition.library" will not work will patches and RTG
  697. systems like CGFX and P96...
  698. Regards!
  699. Can your ImageFX paint like bitmap painters?
  700. Download: gfx/ifx/REDFiX.lha, ftp.novadesign.com
  701. Przemyslaw 'SENSEI' Gruchala
  702. code/gfx2d/gfx3d/webmaster
  703. Amiga 1200
  704. Apollo 1240/33 MHz, 18 MB RAM, BTC 33.6 bps
  705. HDD 3.2 GB, HDD 520 MB, CD x12
  706. Promocja GE Banku Mieszkaniowego: 0,- zl oplaty dla klientow Getin.pl
  707. Kredyt mieszkaniowy do 100% inwestycji, do 20 lat, bez poreczycieli.
  708. Wystarczy wyslac zgloszenie: http://www.getin.pl/ge/ankieta/ankieta.asp
  709. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  710. eGroups is now Yahoo! Groups
  711. Click here for more details
  712. http://click.egroups.com/1/11231/0/_/451227/_/981056403/
  713. ---------------------------------------------------------------------_->
  714. @ENDNODE
  715. @NODE "Mail_15" " Re: Can someone look at this code? "
  716. Date: 02-01-01 19:33:49
  717. Subject: @{b}Re: Can someone look at this code?@{ub}
  718. Hello Allan
  719. On 01-Feb-01, Allan Odgaard wrote:
  720. > Hello Jack,
  721. >>> As I understand it, setting SharePens will only make intuition
  722. >>> allocate the pens used for the DrawInfo-structure, thus the colours
  723. >>> you supply with SA_Colors are only stored (i.e. using LoadRGB())
  724. >> Sounds like it could be the case since another way I can make it fail
  725. >> is by calling a requester generated by Reaction. So, do you know how I
  726. >> go about locking the pens?
  727. > Either use graphics.library/ObtainPen or don't set SA_SharePens.
  728. The only reason I am using SA_SharePens is so the program will
  729. recognize the style setting in Reaction Prefs.  Without the tag, this
  730. setting is ignored.
  731. > The best is of course to use ObtainBestPen for all your colours to get
  732. > optimal pen sharing.
  733. I have used ObtainBestPen before but always after a window was
  734. opened so I'm not sure how I would do this in this case.  Would I open 
  735. the screen, loop through my color settings using ObtainBestPen and use
  736. the result with LoadRGB to set the screens colors before opening the 
  737. window?
  738.  Jack
  739. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  740. eGroups is now Yahoo! Groups
  741. Click here for more details
  742. http://click.egroups.com/1/11231/0/_/451227/_/981057021/
  743. ---------------------------------------------------------------------_->
  744. @ENDNODE
  745. @NODE "Mail_16" " Date problem - PLEASE help! "
  746. Date: 02-01-01 20:19:02
  747. Subject: @{b}Date problem - PLEASE help!@{ub}
  748. Hi all.
  749. This is my second try. Could someone please help me with the date bug
  750. that affects several Amiga programs. I think this bug is in some of the
  751. SAS/C code somewhere, but I don't know where.
  752. The bug causes all dates after 1.1.2001 to be one day ahead of what they
  753. should be, i.e. Monday is shown as Tuesday etc. This is a major problem
  754. for people who use stuff like MoneyMatters, and an annoyance for
  755. Wordworth users.
  756. Can someone please help me sort this. I'm no expert with the SAS/C
  757. system (I use Storm).
  758. Thanks,
  759. .-------------------------------------.----------------.
  760. | Ami3D....www.mc68k.btinternet.co.uk | Asm..C..Blitz2 |
  761. | email...paul.qureshi@btinternet.com | Intel..Outside |
  762. `-------------------------------------^----------------'
  763.    Amiga Support Association - www.amigasupport.co.uk
  764. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  765. eGroups is now Yahoo! Groups
  766. Click here for more details
  767. http://click.egroups.com/1/11231/0/_/451227/_/981059438/
  768. ---------------------------------------------------------------------_->
  769. @ENDNODE
  770. @NODE "Mail_17" " structures... "
  771. Date: 02-01-01 20:52:09
  772. Subject: @{b}structures...@{ub}
  773. Hiya,
  774.    Say you had the following structure:
  775.    struct test
  776.       char *str;
  777.       long val;
  778.    In Delphi there is a keyword 'with' which allows you to do the following;
  779. rather than...
  780.    struct test blah;
  781.    blah.str = abc;
  782.    blah.val = xyz;
  783.    ... you can do...
  784.    struct test blah;
  785.    with blah do
  786.    begin
  787.       str = abc;
  788.       val = xyz;
  789.    end;
  790.    Is there an equivalent in C/C++?
  791. Kind regards...
  792. Cremlin Software - http://www.cremlinsoftware.org
  793. Founder, lead programmer - ghandi@cremlinsoftware.org
  794. Production, programmer - anj@cremlinsoftware.org
  795. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  796. eGroups is now Yahoo! Groups
  797. Click here for more details
  798. http://click.egroups.com/1/11231/0/_/451227/_/981098909/
  799. ---------------------------------------------------------------------_->
  800. @ENDNODE
  801. @NODE "Mail_18" " Re: Clipping graphics output "
  802. Date: 02-01-01 22:57:27
  803. Subject: @{b}Re: Clipping graphics output@{ub}
  804. Hello Sensei,
  805. >> There's no system friendly way to attach a layer to an offscreen
  806. >> rastport. But in practise it's quite simple.
  807. > Could you explain it a bit more clearly? Why using layers.library
  808. > functions in normal program isn't system friendly? [...]
  809. You can use layers.library in your private program but you may not mix
  810. this with intuition. This note is in the RKM.
  811. >> But tt's not something I
  812. >> do, as it is not really a documented feature of the OS.
  813. > Layers.library is documented very well I think... I can even create my
  814. > own window system (instead of Intuition Windows) using this functions,
  815. > so why you wrote that it's not system friendly?
  816. There's a difference between using layers.library for your own window
  817. system, and using it to fake layer structures normally created by
  818. intuition (using layers.library).
  819. When intuition allocates a layer it fills out some of the private fields
  820. of the layer structure for various info (and uses the flag field etc.).
  821. So when graphics.library is handed a rastport with an attached layer
  822. structure it naturally assumes that the layer structure was allocated
  823. through intuition.library, thus that the conventions introduced by this
  824. library are present -- conventions which are *not* documented in the
  825. layers.library autodoc nor anywhere else.
  826. Kind regards Allan
  827. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  828. eGroups is now Yahoo! Groups
  829. Click here for more details
  830. http://click.egroups.com/1/11231/0/_/451227/_/981065670/
  831. ---------------------------------------------------------------------_->
  832. @ENDNODE
  833. @NODE "Mail_19" " Re: Can someone look at this code? "
  834. Date: 02-01-01 23:01:26
  835. Subject: @{b}Re: Can someone look at this code?@{ub}
  836. Hello Jack,
  837. >> Either use graphics.library/ObtainPen or don't set SA_SharePens.
  838. > The only reason I am using SA_SharePens is so the program will
  839. > recognize the style setting in Reaction Prefs.  Without the tag, this
  840. > setting is ignored.
  841. Probably because the screen has no free colours, which make ReAction
  842. fall back on the standard 4 colour look.
  843. >> The best is of course to use ObtainBestPen for all your colours to
  844. >> get optimal pen sharing.
  845. > I have used ObtainBestPen before but always after a window was opened
  846. > so I'm not sure how I would do this in this case. Would I open the
  847. > screen, loop through my color settings using ObtainBestPen and use the
  848. > result with LoadRGB to set the screens colors before opening the
  849. > window?
  850. When do you need to have the palette set? You never need to call
  851. LoadRGB() when you use ObtainBestPen().
  852. Either you call ObtainBestPen() after opening the screen, if you have
  853. some colours you'd like to have set for the screen (but why? -- perhaps
  854. because you want to give the screen a background image?) or you let
  855. each window call ObtainBestPen() after opening, to allocate the colours
  856. required for the window (the way to go).
  857. Kind regards Allan
  858. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  859. eGroups is now Yahoo! Groups
  860. Click here for more details
  861. http://click.egroups.com/1/11231/0/_/451227/_/981065672/
  862. ---------------------------------------------------------------------_->
  863. @ENDNODE
  864. @NODE "Mail_20" " Re: Can someone look at this code? "
  865. Date: 02-01-01 23:48:41
  866. Subject: @{b}Re: Can someone look at this code?@{ub}
  867. Hello Allan
  868. On 01-Feb-01, Allan Odgaard wrote:
  869. > Hello Jack,
  870. >>> The best is of course to use ObtainBestPen for all your colours to
  871. >>> get optimal pen sharing.
  872. >> I have used ObtainBestPen before but always after a window was opened
  873. >> so I'm not sure how I would do this in this case. Would I open the
  874. >> screen, loop through my color settings using ObtainBestPen and use the
  875. >> result with LoadRGB to set the screens colors before opening the
  876. >> window?
  877. > When do you need to have the palette set? You never need to call
  878. > LoadRGB() when you use ObtainBestPen().
  879. Then I don't understand how the function works.  I thought it
  880. just returned a value of one pen that approximates what you
  881. asked for?  It doesn't set the value into, say, the screens
  882. colormap AFAIK.  So how/when does it change the screens
  883. colors?  
  884. I have a config option in the program in which the user can set the
  885. colors of things like text in a listbrowser and front/background pens
  886. of the gadgets.  If the user runs the program and saves these
  887. colors, they should be set before a window is opened the next time
  888. the program is ran.  Otherwise the window may open with one set 
  889. of colors and then change shortly after to the users.  Obviously not 
  890. the way to go.
  891. > Either you call ObtainBestPen() after opening the screen, if you have
  892. > some colours you'd like to have set for the screen (but why? -- perhaps
  893. > because you want to give the screen a background image?) or you let
  894. > each window call ObtainBestPen() after opening, to allocate the colours
  895. > required for the window (the way to go).
  896. Maybe I don't understand what you are telling me but it sounds like doing
  897. it the second way (let each window...after opening) will give the 
  898. problem I mentioned above.   The reason I would want the screens colors
  899. set first is because that's where the windows get their colors from, at
  900. least that is my understanding of the way it works.  Using ObtainBestPen
  901. may work (may even be the best approach) but since everything works
  902. fine without the SA_SharePens tag, I would assume the mechanism for
  903. setting the colors is already built into the OS.  Aren't I just causing
  904. myself
  905. more work by using that function?
  906. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  907. eGroups is now Yahoo! Groups
  908. Click here for more details
  909. http://click.egroups.com/1/11231/0/_/451227/_/981072508/
  910. ---------------------------------------------------------------------_->
  911. @ENDNODE
  912. @NODE "Mail_21" " Re: Can someone look at this code? "
  913. Date: 02-02-01 04:36:52
  914. Subject: @{b}Re: Can someone look at this code?@{ub}
  915. On 02-Feb-01, Jack York wrote:
  916. -snip-
  917. >>ObtainbestPen();
  918. > Then I don't understand how the function works.  I thought it
  919. > just returned a value of one pen that approximates what you
  920. > asked for?  It doesn't set the value into, say, the screens
  921. > colormap AFAIK.  So how/when does it change the screens
  922. > colors?  
  923. It doesn't,  it just picks a colour register that is already set, 
  924. to the closest requirements you ask for..
  925. > I have a config option in the program in which the user can set the
  926. > colors of things like text in a listbrowser and front/background pens
  927. > of the gadgets.  If the user runs the program and saves these
  928. > colors, they should be set before a window is opened the next time
  929. > the program is run.  Otherwise the window may open with one set 
  930. > of colors and then change shortly after to the users.  Obviously not 
  931. > the way to go.
  932. I believe the colour register for a new screen are set to a default
  933. value upon opening,  or the same as a cloned screen, if you did that.
  934. If you want a custom screen that you can define all the registers in,
  935. that's fine,  but you should never change the colour register values 
  936. of someone elses screen,  say for instance,  Workbench...
  937. If you use your own screen,  then you are free to set them to anything
  938. you like,  obviously,  you would save the register values in your
  939. config file or where ever & do a LoadRGB*()   function after opening
  940. your custom screen & windows..
  941. When you know what register number you are manually adjusting, 
  942. you don't need to call ObtainBestPen(),  
  943. because you already know what register your adjustment is in...  (:>
  944. ObtainBestPen() is for finding the colour you want, from someone 
  945. elses palette..
  946. I really have no idea how this effects BOOPSI  \   Reaction classes
  947. as I havn't been able to fingure out  (yet)  where they get their pens 
  948. from or if you can actually specify a pen for a particular  part of the
  949. display.  (object ?)   
  950. However, this is how i've treated normal custom screen displays
  951. in my code before & they behave exactly as expected.. 
  952. Regards
  953. _________________________________________
  954. Colin Wenzel.  Quensland, Australia.
  955. EMAIL:  colstv@hotkey.net.au
  956. URL:       http://www.hotkey.net.au/~colstv/
  957. AMIGA: 4000T,  68060/50,  150Mb RAM,  
  958.                OS 3.9,  Spectrum Gfx Card + P96.
  959. Need an Image Generator For CATV  ??
  960.        http://connect.to/products
  961. _________________________________________
  962. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  963. eGroups is now Yahoo! Groups
  964. Click here for more details
  965. http://click.egroups.com/1/11231/0/_/451227/_/981088744/
  966. ---------------------------------------------------------------------_->
  967. @ENDNODE
  968. @NODE "Mail_22" " Re: structures... "
  969. Date: 02-02-01 10:35:37
  970. Subject: @{b}Re: structures...@{ub}
  971.  Hi Alexander,
  972. >   In Delphi there is a keyword 'with' which allows you to do the
  973. > following; rather than...
  974. >   struct test blah;
  975. >   blah.str = abc;
  976. >   blah.val = xyz;
  977. >   ... you can do...
  978. >   struct test blah;
  979. >   with blah do
  980. >   begin
  981. >      str = abc;
  982. >      val = xyz;
  983. >   end;
  984. >   Is there an equivalent in C/C++?
  985. No, there isn't one :-( I knew 'with' too when I started coding in C and
  986. I missed it a lot... You have to stick with blah.xyz = 123; etc... See
  987.  Gabriele
  988. TiscaliNet, libero accesso ad Internet.
  989. http://www.tiscalinet.it
  990. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  991. eGroups is now Yahoo! Groups
  992. Click here for more details
  993. http://click.egroups.com/1/11231/0/_/451227/_/981106588/
  994. ---------------------------------------------------------------------_->
  995. @ENDNODE
  996. @NODE "Mail_23" " Re: structures... "
  997. Date: 02-02-01 13:46:26
  998. Subject: @{b}Re: structures...@{ub}
  999. On Thu, 1 Feb 2001, Alexander Niven-Jenkins wrote:
  1000. >   In Delphi there is a keyword 'with' which allows you to do the following;
  1001. >   struct test blah;
  1002. >   with blah do
  1003. >   begin
  1004. >      str = abc;
  1005. >      val = xyz;
  1006. >   end;
  1007. >   Is there an equivalent in C/C++?
  1008. you could probably set up some macro definitions to get a similar
  1009. effect, e.g.
  1010. #define V(x)    shortcut.x
  1011. // later...
  1012. struct test blah
  1013. #define shortcut blah
  1014.     V(str) = abc;
  1015.     V(val) = xyz
  1016. but whether it's worth it depends on how nested your structure is, how
  1017. good your preprocessor is and how badly you miss Delphi.
  1018. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1019. eGroups is now Yahoo! Groups
  1020. Click here for more details
  1021. http://click.egroups.com/1/11231/0/_/451227/_/981117990/
  1022. ---------------------------------------------------------------------_->
  1023. @ENDNODE
  1024. @NODE "Mail_24" " Re: Can someone look at this code? "
  1025. Date: 02-02-01 14:46:52
  1026. Subject: @{b}Re: Can someone look at this code?@{ub}
  1027. Hello Colin
  1028. On 01-Feb-01, Colin Wenzel wrote:
  1029. > On 02-Feb-01, Jack York wrote:
  1030. > -snip-
  1031. >>> ObtainbestPen();
  1032. >> Then I don't understand how the function works.  I thought it
  1033. >> just returned a value of one pen that approximates what you
  1034. >> asked for?  It doesn't set the value into, say, the screens
  1035. >> colormap AFAIK.  So how/when does it change the screens
  1036. >> colors?  
  1037. > It doesn't,  it just picks a colour register that is already set, 
  1038. > to the closest requirements you ask for..
  1039. So it doesn't sound like this is what I need.
  1040. >> I have a config option in the program in which the user can set the
  1041. >> colors of things like text in a listbrowser and front/background pens
  1042. >> of the gadgets.  If the user runs the program and saves these
  1043. >> colors, they should be set before a window is opened the next time
  1044. >> the program is run.  Otherwise the window may open with one set 
  1045. >> of colors and then change shortly after to the users.  Obviously not 
  1046. >> the way to go.
  1047. > I believe the colour register for a new screen are set to a default
  1048. > value upon opening,  or the same as a cloned screen, if you did that.
  1049. This is my understanding too.  That's the purpose of the tags in
  1050. OpenScreenTags AFAIK.
  1051. > If you want a custom screen that you can define all the registers in,
  1052. > that's fine,  but you should never change the colour register values 
  1053. > of someone elses screen,  say for instance,  Workbench...
  1054. Right, this is my own screen.
  1055. > If you use your own screen,  then you are free to set them to anything
  1056. > you like,  obviously,  you would save the register values in your
  1057. > config file or where ever & do a LoadRGB*()   function after opening
  1058. > your custom screen & windows..
  1059. This I don't understand.  Doing a LoadRGB will cause the windows
  1060. colors to change after the program is up and running.  I've never
  1061. seen a program behave this way.  Colors are always set the way
  1062. you want them when the program starts, not after it is started.
  1063. > When you know what register number you are manually adjusting, 
  1064. > you don't need to call ObtainBestPen(),  
  1065. > because you already know what register your adjustment is in...  (:>
  1066. > ObtainBestPen() is for finding the colour you want, from someone 
  1067. > elses palette..
  1068. That's what I thought.
  1069. > I really have no idea how this effects BOOPSI  \   Reaction classes
  1070. > as I havn't been able to fingure out  (yet)  where they get their pens 
  1071. > from or if you can actually specify a pen for a particular  part of the
  1072. > display.  (object ?)   
  1073. Yes, in Reaction it's just a tag to set it to a certain pen.  But at this
  1074. point the colors are already set in the screen.
  1075. > However, this is how i've treated normal custom screen displays
  1076. > in my code before & they behave exactly as expected.. 
  1077. As I mentioned, this program works fine if the SA_SharePens
  1078. tag is removed.  All colors come up as they were saved when
  1079. the window opens.  Does one of your programs have custom colors 
  1080. that you change after it is up and running?  Don't you see it start 
  1081. in one color and then switch to another this way?
  1082. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1083. eGroups is now Yahoo! Groups
  1084. Click here for more details
  1085. http://click.egroups.com/1/11231/0/_/451227/_/981125489/
  1086. ---------------------------------------------------------------------_->
  1087. @ENDNODE
  1088. @NODE "Mail_25" " ObtainBestPen (was: Re: Can someone look at this code?) "
  1089. Date: 02-02-01 15:20:32
  1090. Subject: @{b}ObtainBestPen (was: Re: Can someone look at this code?)@{ub}
  1091. Hello Jack,
  1092. > Then I don't understand how the function works.  I thought it
  1093. > just returned a value of one pen that approximates what you
  1094. > asked for?  [...]
  1095. Indeed, but if no match (precise enough) is found, a new pen is
  1096. allocated. Granted more free colours exist in the palette.
  1097. > [...] If the user runs the program and saves these
  1098. > colors, they should be set before a window is opened the next time
  1099. > the program is ran.  [...]
  1100. The normal procedure is:
  1101.    Open window
  1102.    Allocate colours
  1103.    Draw GUI
  1104. But if all your windows make use of the same four colours then it might
  1105. be easier to have one structure from where they can just read the pen
  1106. values. This structure would then be setup when you open the screen.
  1107. > [...] everything works fine without the SA_SharePens tag, I would
  1108. > assume the mechanism for setting the colors is already built into
  1109. > the OS. 
  1110. The problem with not setting this tag is as I understand that all your
  1111. screen colours will be private. So you can use them, but all other
  1112. programs won't be able to obtain colours on your screen, thus have to
  1113. fall back on some low colour look (as you mention with ReAction, which
  1114. ignore the style setting).
  1115. Kind regards Allan
  1116. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1117. eGroups is now Yahoo! Groups
  1118. Click here for more details
  1119. http://click.egroups.com/1/11231/0/_/451227/_/981124513/
  1120. ---------------------------------------------------------------------_->
  1121. @ENDNODE
  1122. @NODE "Mail_26" " Re: structures... "
  1123. Date: 02-02-01 15:25:04
  1124. Subject: @{b}Re: structures...@{ub}
  1125. Hello Alexander,
  1126. >   Say you had the following structure:
  1127. >   [...]
  1128. >   Is there an equivalent in C/C++?
  1129. Not besides the normal initializing, e.g.:
  1130.    struct test blah =
  1131.       abc,
  1132.       xyz
  1133.    };
  1134. Kind regards Allan
  1135. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1136. eGroups is now Yahoo! Groups
  1137. Click here for more details
  1138. http://click.egroups.com/1/11231/0/_/451227/_/981124454/
  1139. ---------------------------------------------------------------------_->
  1140. @ENDNODE
  1141. @NODE "Mail_27" " Re: Can someone look at this code? "
  1142. Date: 02-02-01 16:27:27
  1143. Subject: @{b}Re: Can someone look at this code?@{ub}
  1144. On 02-Feb-01, Jack York wrote:
  1145. -snip-
  1146. >  Does one of your programs have custom colors 
  1147. > that you change after it is up and running?  
  1148. > Don't you see it start  in one color and then 
  1149. > switch to another this way?
  1150. > Jack
  1151. All of them that use a custom screen use custom colours,
  1152. and no, you don't see it, because the pens are set within
  1153. microseconds after the display opens,
  1154. of course, the pens are set before I attach any GUI elements...
  1155. Here is a bit of a program I have......
  1156. UWORD default_palette[]={
  1157.     0x0888,
  1158.     0x0FFF,
  1159.     0x0999,
  1160.     0x0000,
  1161.     0x0777,
  1162.     0x0060,
  1163.     0x0FF0,
  1164.     0x000A
  1165. #define SHADE1    0
  1166. #define WHITE      1
  1167. #define SHADE2    2
  1168. #define BLACK      3
  1169. #define SHADE0    4
  1170. #define GREEN      5
  1171. #define YELLOW   6
  1172. #define BLUE         7
  1173. VOID main()
  1174.   readconfig();  /* screenmode info is fetched from here */
  1175.   ScreenPTR = OpenScreenTags(    NULL,     
  1176.         SA_Left, 0L,
  1177.         SA_Top, 0L,
  1178.         SA_Width, (ulong)CON.ScreenWidth,
  1179.         SA_Height, (ulong)CON.ScreenHeight,
  1180.         SA_DisplayID, (ulong)CON.ScreenMode,
  1181.         SA_Font, (ulong)&TXA,
  1182.         SA_Depth, 3L,
  1183.         SA_DetailPen, SHADE1,
  1184.         SA_BlockPen, BLACK,
  1185.         SA_Title, NULL,
  1186.         SA_BitMap, NULL,
  1187.         SA_ShowTitle, 0L,
  1188.         SA_Behind, 0L,
  1189.         SA_Quiet, 0L,
  1190.         SA_Type, (ulong)CUSTOMSCREEN,
  1191.         TAG_DONE, NULL 
  1192.   if( ! ScreenPTR ){
  1193.     puts("Can't Open Screen.");
  1194.     cleanup();
  1195.   WindowPTR = OpenWindowTags(NULL,
  1196.         WA_CustomScreen, ScreenPTR,
  1197.         WA_Left, 0L,
  1198.         WA_Top, 0L,
  1199.         WA_Width, (ulong)CON.ScreenWidth,
  1200.         WA_Height, (ulong)CON.ScreenHeight,
  1201.         WA_DetailPen, SHADE1,
  1202.         WA_BlockPen, BLACK,
  1203.         WA_MinWidth,100,
  1204.         WA_MinHeight,100,
  1205.         WA_MaxWidth,-1,
  1206.         WA_MaxHeight,-1,
  1207.         WA_CloseGadget,FALSE,
  1208.         WA_SizeGadget,FALSE,
  1209.         WA_DepthGadget,FALSE,
  1210.         WA_Backdrop, FALSE,
  1211.         WA_DragBar,FALSE,
  1212.         WA_SmartRefresh,TRUE,
  1213.         WA_Borderless, FALSE,
  1214.         WA_Activate,TRUE,
  1215.         WA_Title, NULL,
  1216.         WA_IDCMP,IDCMP_MENUPICK | IDCMP_VANILLAKEY | IDCMP_RAWKEY,
  1217.         TAG_END);
  1218.   if( ! WindowPTR ){
  1219.     puts("Can't Open Window.");
  1220.     cleanup();
  1221.   RastPRT   = (struct RastPort *)WindowPTR->RPort;
  1222.   ViewPRT   = ViewPortAddress(WindowPTR);
  1223.   LoadRGB4(ViewPRT, &default_palette[0], 8L);
  1224. /*------------ snipped here --------------*/
  1225.   cleanup();
  1226. Regards
  1227. _________________________________________
  1228. Colin Wenzel.  Quensland, Australia.
  1229. EMAIL:  colstv@hotkey.net.au
  1230. URL:       http://www.hotkey.net.au/~colstv/
  1231. AMIGA: 4000T,  68060/50,  150Mb RAM,  
  1232.                OS 3.9,  Spectrum Gfx Card + P96.
  1233. Need an Image Generator For CATV  ??
  1234.        http://connect.to/products
  1235. _________________________________________
  1236. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1237. eGroups is now Yahoo! Groups
  1238. Click here for more details
  1239. http://click.egroups.com/1/11231/0/_/451227/_/981127758/
  1240. ---------------------------------------------------------------------_->
  1241. @ENDNODE
  1242. @NODE "Mail_28" " Re: structures... "
  1243. Date: 02-02-01 16:40:32
  1244. Subject: @{b}Re: structures...@{ub}
  1245. Hello Alexander
  1246. On 01-Feb-01, you wrote:
  1247. AN>   Say you had the following structure:
  1248. AN>   struct test
  1249. AN>   {
  1250. AN>      char *str;
  1251. AN>      long val;
  1252. AN>   }
  1253. AN>   In Delphi there is a keyword 'with' which allows you to do the
  1254. AN> following; rather than...
  1255. AN>   struct test blah;
  1256. AN>   blah.str = abc;
  1257. AN>   blah.val = xyz;
  1258. AN>   ... you can do...
  1259. AN>   struct test blah;
  1260. AN>   with blah do
  1261. AN>   begin
  1262. AN>      str = abc;
  1263. AN>      val = xyz;
  1264. AN>   end;
  1265. AN>   Is there an equivalent in C/C++?
  1266. You can do:
  1267. #define str blah.str
  1268. #define val blah.var
  1269. str=abc;
  1270. val=xyz;
  1271. #undef str
  1272. #undef val
  1273. Thats a workaround.
  1274. Regards
  1275. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1276. eGroups is now Yahoo! Groups
  1277. Click here for more details
  1278. http://click.egroups.com/1/11231/0/_/451227/_/981130230/
  1279. ---------------------------------------------------------------------_->
  1280. @ENDNODE
  1281. @NODE "Mail_29" " Custom screens (was: Re: Can someone look at this code?) "
  1282. Date: 02-02-01 17:41:45
  1283. Subject: @{b}Custom screens (was: Re: Can someone look at this code?)@{ub}
  1284. Hello Colin,
  1285. > All of them that use a custom screen use custom colours,
  1286. > [...]
  1287. I wish someone would declare custom screens obsolete ;-)
  1288. Kind regards Allan
  1289. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1290. eGroups is now Yahoo! Groups
  1291. Click here for more details
  1292. http://click.egroups.com/1/11231/0/_/451227/_/981133217/
  1293. ---------------------------------------------------------------------_->
  1294. @ENDNODE
  1295. @NODE "Mail_30" " Re: Can someone look at this code? "
  1296. Date: 02-02-01 17:46:04
  1297. Subject: @{b}Re: Can someone look at this code?@{ub}
  1298. Hello Jack,
  1299. >> It doesn't,  it just picks a colour register that is already set, 
  1300. >> to the closest requirements you ask for..
  1301. > So it doesn't sound like this is what I need.
  1302. It does allocate colours (see my other reply).
  1303. >> I believe the colour register for a new screen are set to a default
  1304. >> value upon opening,  or the same as a cloned screen, if you did that.
  1305. > This is my understanding too.  That's the purpose of the tags in
  1306. > OpenScreenTags AFAIK.
  1307. It doesn't necessarily set all colours upon opening. Not if you enable
  1308. palette sharing for the screen (SA_SharePens).
  1309. > This I don't understand.  Doing a LoadRGB will cause the windows
  1310. > colors to change after the program is up and running.  I've never
  1311. Yes, if you modify pens which are in use. But you're not really allowed
  1312. to do that!
  1313. > seen a program behave this way.  Colors are always set the way
  1314. > you want them when the program starts, not after it is started.
  1315. I'd imagine that 99% of all programs use ObtainBestPen. You may only use
  1316. LoadRGB() if you've allocated private pens (or if you're dealing with
  1317. your own custom screen).
  1318. Kind regards Allan
  1319. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1320. eGroups is now Yahoo! Groups
  1321. Click here for more details
  1322. http://click.egroups.com/1/11231/0/_/451227/_/981133211/
  1323. ---------------------------------------------------------------------_->
  1324. @ENDNODE
  1325. @NODE "Mail_31" " Re: Custom screens (was: Re: Can someone look at this code?) "
  1326. Date: 02-02-01 18:14:05
  1327. Subject: @{b}Re: Custom screens (was: Re: Can someone look at this code?)@{ub}
  1328. Hi Allan
  1329. > > All of them that use a custom screen use custom colours,
  1330. > > [...]
  1331. > I wish someone would declare custom screens obsolete ;-)
  1332. I declare that custom screens are obsolete.
  1333. (Sorry, couldn't resist :)
  1334. |) /\ \/ ][ |)   |\/| c |\/| ][ |\| |\|   |   dave@blitz-2000.co.uk
  1335.    http://members.nbci.com/david_mcminn   |   ICQ=16827694
  1336. A closed mouth gathers no foot.
  1337. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1338. eGroups is now Yahoo! Groups
  1339. Click here for more details
  1340. http://click.egroups.com/1/11231/0/_/451227/_/981134290/
  1341. ---------------------------------------------------------------------_->
  1342. @ENDNODE
  1343. @NODE "Mail_32" " Re: Can someone look at this code? "
  1344. Date: 02-02-01 19:13:07
  1345. Subject: @{b}Re: Can someone look at this code?@{ub}
  1346. Hiya Jack,
  1347. On 02-Feb-01, you wrote:
  1348. >> However, this is how i've treated normal custom screen displays
  1349. >> in my code before & they behave exactly as expected.. 
  1350. > As I mentioned, this program works fine if the SA_SharePens
  1351. > tag is removed.  All colors come up as they were saved when
  1352. > the window opens.  Does one of your programs have custom colors 
  1353. > that you change after it is up and running?  Don't you see it start 
  1354. > in one color and then switch to another this way?
  1355.    I tested your program (OS3.5 BB2a, PIV running P96 if that affects
  1356. anything)
  1357.    The program worked fine and on pressing RMB to select the menus the
  1358. colours stayed the same the window borders etc. were still pink.
  1359.    However I do have one program hat doesn't exactly what you seem to suffer
  1360. from yourself.  DeluxePaint 5.
  1361.    In normal operation it is fine; however the moment you press rmb for a
  1362. menu or DPaint opens up a 'standard window' the colours of the screen
  1363. change to the standard 4 (grey, white, black, blue) on releasing rmb/window
  1364. closes they return to what they were.
  1365.    This happens with OS 3.1 without a GFX card as well.
  1366.    It obviously isn't a ReAction/ClassAct thing as it doesn't use them so it
  1367. must be an intuition thing!
  1368.    Why you get it and I don't is a different matter :-)
  1369. Kind regards...
  1370. Cremlin Software - http://www.cremlinsoftware.org
  1371. Founder, lead programmer - ghandi@cremlinsoftware.org
  1372. Production, programmer - anj@cremlinsoftware.org
  1373. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1374. eGroups is now Yahoo! Groups
  1375. Click here for more details
  1376. http://click.egroups.com/1/11231/0/_/451227/_/981138618/
  1377. ---------------------------------------------------------------------_->
  1378. @ENDNODE
  1379. @NODE "Mail_33" " Re: Custom screens (was: Re: Can someone look at this code?) "
  1380. Date: 02-02-01 19:16:06
  1381. Subject: @{b}Re: Custom screens (was: Re: Can someone look at this code?)@{ub}
  1382. Hiya Allan,
  1383. On 02-Feb-01, you wrote:
  1384. >> All of them that use a custom screen use custom colours,
  1385. >> [...]
  1386. > I wish someone would declare custom screens obsolete ;-)
  1387.    By custom do you mean not 'public'.  If so I would totally agree.
  1388.    However how can you expect this when a fundamental part of the OS; and by
  1389. this I mean Multiview opens a custom screen when you choose 'use seperate
  1390. screen'; that REALLY annoys me :-)  I guess there must be a reasn for this
  1391. though.
  1392.    Especially as I use Multiview for everyting; it is GOD :-)
  1393. Kind regards...
  1394. Cremlin Software - http://www.cremlinsoftware.org
  1395. Founder, lead programmer - ghandi@cremlinsoftware.org
  1396. Production, programmer - anj@cremlinsoftware.org
  1397. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1398. eGroups is now Yahoo! Groups
  1399. Click here for more details
  1400. http://click.egroups.com/1/11231/0/_/451227/_/981138614/
  1401. ---------------------------------------------------------------------_->
  1402. @ENDNODE
  1403. @NODE "Mail_34" " Re: structures... "
  1404. Date: 02-02-01 19:19:08
  1405. Subject: @{b}Re: structures...@{ub}
  1406. Hiya Serge,
  1407. On 02-Feb-01, you wrote:
  1408. >>   struct test blah;
  1409. >>   with blah do
  1410. >>   begin
  1411. >>      str = abc;
  1412. >>      val = xyz;
  1413. >>   end;
  1414. >>   Is there an equivalent in C/C++?
  1415. > You can do:
  1416. > #define str blah.str
  1417. > #define val blah.var
  1418. > str=abc;
  1419. > val=xyz;
  1420. > #undef str
  1421. > #undef val
  1422.    A work around; but kind of defeats the object of what 'with' allows you
  1423. to do :-)
  1424.    I will have put up without it.  It's just when you use Delphi for 7.5
  1425. hours a day you some what get used to a certain way of doing things :-)
  1426.    Thanks anyway!
  1427. Kind regards...
  1428. Cremlin Software - http://www.cremlinsoftware.org
  1429. Founder, lead programmer - ghandi@cremlinsoftware.org
  1430. Production, programmer - anj@cremlinsoftware.org
  1431. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1432. eGroups is now Yahoo! Groups
  1433. Click here for more details
  1434. http://click.egroups.com/1/11231/0/_/451227/_/981138632/
  1435. ---------------------------------------------------------------------_->
  1436. @ENDNODE
  1437. @NODE "Mail_35" " Re: Custom screens (was: Re: Can someone look at this code?) "
  1438. Date: 02-02-01 19:51:28
  1439. Subject: @{b}Re: Custom screens (was: Re: Can someone look at this code?)@{ub}
  1440.  Hi 'verybody,
  1441. >> I wish someone would declare custom screens obsolete ;-)
  1442. > I declare that custom screens are obsolete.
  1443. > (Sorry, couldn't resist :)
  1444. Don't you think that this depends on what you use them for? They suck
  1445. badly for applications, on the other hand for example if you're coding a
  1446. game (I'm coding a game...) you really don't want some windows to pop-up
  1447. in front of the user (and no, my game is 100% system friendly, doesn't
  1448. close the workbench, multitasks, etc...). See ya
  1449.  Gabriele
  1450. TiscaliNet, libero accesso ad Internet.
  1451. http://www.tiscalinet.it
  1452. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1453. eGroups is now Yahoo! Groups
  1454. Click here for more details
  1455. http://click.egroups.com/1/11231/0/_/451227/_/981140389/
  1456. ---------------------------------------------------------------------_->
  1457. @ENDNODE
  1458. @NODE "Mail_36" " Re: structures... "
  1459. Date: 02-03-01 00:50:55
  1460. Subject: @{b}Re: structures...@{ub}
  1461. Hello Alexander
  1462. On 02-Feb-01, you wrote:
  1463. AN>   I will have put up without it.  It's just when you use Delphi for 7.5
  1464. AN> hours a day you some what get used to a certain way of doing things :-)
  1465. Any pascal compiler will help you: Hisoft Pascal, for example. Modula-2
  1466. compilers may be interesting to you too. Cyclone is great!
  1467. Regards
  1468. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1469. eGroups is now Yahoo! Groups
  1470. Click here for more details
  1471. http://click.egroups.com/1/11231/0/_/451227/_/981158147/
  1472. ---------------------------------------------------------------------_->
  1473. @ENDNODE
  1474. @NODE "Mail_37" " Re: Custom screens (was: Re: Can someone look at this code?) "
  1475. Date: 02-03-01 03:38:02
  1476. Subject: @{b}Re: Custom screens (was: Re: Can someone look at this code?)@{ub}
  1477. On 03-Feb-01, David McMinn wrote:
  1478. > Hi Allan
  1479. >>> All of them that use a custom screen use custom colours,
  1480. >>> [...]
  1481. >> I wish someone would declare custom screens obsolete ;-)
  1482. > I declare that custom screens are obsolete.
  1483. > (Sorry, couldn't resist :)
  1484. Well what the heck am I going to hang my windows on now... ???
  1485. Regards
  1486. _________________________________________
  1487. Colin Wenzel.  Quensland, Australia.
  1488. EMAIL:  colstv@hotkey.net.au
  1489. URL:       http://www.hotkey.net.au/~colstv/
  1490. AMIGA: 4000T,  68060/50,  150Mb RAM,  
  1491.                OS 3.9,  Spectrum Gfx Card + P96.
  1492. Need an Image Generator For CATV  ??
  1493.        http://connect.to/products
  1494. _________________________________________
  1495. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1496. eGroups is now Yahoo! Groups
  1497. Click here for more details
  1498. http://click.egroups.com/1/11231/0/_/451227/_/981169258/
  1499. ---------------------------------------------------------------------_->
  1500. @ENDNODE
  1501. @NODE "Mail_38" " Re: Can someone look at this code? "
  1502. Date: 02-03-01 10:29:38
  1503. Subject: @{b}Re: Can someone look at this code?@{ub}
  1504. Hello Alexander,
  1505. >   However I do have one program hat doesn't exactly what you seem to
  1506. > suffer from yourself. DeluxePaint 5.
  1507. AFAIK DPaint itself change the colours, because it allows the user to
  1508. customize the entire palette, so it needs to change it to ensure that
  1509. the menus are visible.
  1510. >   Why you get it and I don't is a different matter :-)
  1511. Perhaps because you have a screen promoter or similar which gives the
  1512. screen more colours than requested, perhaps because you don't use
  1513. MagicMenu or have it configured to use a palette which doesn't require
  1514. changing the pens on the screen etc. etc.
  1515. I had hoped my other replies would have clarified the shared pen issue.
  1516. Perhaps I should sum up the points?
  1517. Kind regards Allan
  1518. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1519. eGroups is now Yahoo! Groups
  1520. Click here for more details
  1521. http://click.egroups.com/1/11231/0/_/451227/_/981192657/
  1522. ---------------------------------------------------------------------_->
  1523. @ENDNODE
  1524. @NODE "Mail_39" " Re: Custom screens (was: Re: Can someone look at this code?) "
  1525. Date: 02-03-01 10:29:40
  1526. Subject: @{b}Re: Custom screens (was: Re: Can someone look at this code?)@{ub}
  1527. Hello Alexander,
  1528. >> I wish someone would declare custom screens obsolete ;-)
  1529. >   By custom do you mean not 'public'.  If so I would totally agree.
  1530. Indeed!
  1531. >   However how can you expect this when a fundamental part of the OS;
  1532. > and by this I mean Multiview opens a custom screen when you choose
  1533. > 'use seperate screen'; that REALLY annoys me :-) I guess there must be
  1534. > a reasn for this though.
  1535. hmm... perhaps because the author thought the 'separate screen' would
  1536. only be open for a short while and was to lazy to implement the
  1537. required code to deal with visitor windows during close...
  1538. But it sucks, and the source is currently in the hands of Olaf Barthel,
  1539. so what do you say Olaf, going to change it to a public screen? :-)
  1540. Kind regards Allan
  1541. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1542. eGroups is now Yahoo! Groups
  1543. Click here for more details
  1544. http://click.egroups.com/1/11231/0/_/451227/_/981192656/
  1545. ---------------------------------------------------------------------_->
  1546. @ENDNODE
  1547. @NODE "Mail_40" " Re: Custom screens (was: Re: Can someone look at this code?) "
  1548. Date: 02-03-01 10:29:42
  1549. Subject: @{b}Re: Custom screens (was: Re: Can someone look at this code?)@{ub}
  1550. Hello Gabriele,
  1551. > Don't you think that this depends on what you use them for? They suck
  1552. Perhaps there's some use for them. But I think they're only present to
  1553. offer backward compatibility, as kick 1.3 didn't have public screens.
  1554. > badly for applications, on the other hand for example if you're coding
  1555. > a game (I'm coding a game...) you really don't want some windows to
  1556. > pop-up in front of the user [...]
  1557. hmm... I'd like to have my reminder program popup messages on the front
  1558. most screen, even if this is a game that I'm currently playing. I could
  1559. also imagine that I'd like to have 'Lupe' running ontop of the game, to
  1560. look closer at some gfx details. Or perhaps Clock, if I need to keep
  1561. track of time while playing etc. etc.
  1562. Under some circumstances you may want to make your screen custom for
  1563. speed reasons, but then you could have it as an option for the user.
  1564. Personally I'd often prefer to trade the faster scrolling away for
  1565. the ability to open a shell on the screen :-)
  1566. Kind regards Allan
  1567. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1568. eGroups is now Yahoo! Groups
  1569. Click here for more details
  1570. http://click.egroups.com/1/11231/0/_/451227/_/981192658/
  1571. ---------------------------------------------------------------------_->
  1572. @ENDNODE
  1573. @NODE "Mail_41" " Re: Custom screens (was: Re: Can someone look at this code?) "
  1574. Date: 02-03-01 10:33:23
  1575. Subject: @{b}Re: Custom screens (was: Re: Can someone look at this code?)@{ub}
  1576. Hello Colin,
  1577. >> I wish someone would declare custom screens obsolete ;-)
  1578. > Why,  I would absolutely hate to have every application hanging
  1579. > off the workbench screen  (like a pc)  it is an abominable idea....
  1580. It's *custom* screens which should be avoided. You can still have as
  1581. many *public* screens as you see fit!
  1582. Kind regards Allan
  1583. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1584. eGroups is now Yahoo! Groups
  1585. Click here for more details
  1586. http://click.egroups.com/1/11231/0/_/451227/_/981198884/
  1587. ---------------------------------------------------------------------_->
  1588. @ENDNODE
  1589. @NODE "Mail_42" " Re: Custom screens (was: Re: Can someone look at this code?) "
  1590. Date: 02-03-01 12:40:27
  1591. Subject: @{b}Re: Custom screens (was: Re: Can someone look at this code?)@{ub}
  1592. On 03-Feb-01, Allan Odgaard wrote:
  1593. > Hello Colin,
  1594. >>> I wish someone would declare custom screens obsolete ;-)
  1595. >> Why,  I would absolutely hate to have every application hanging
  1596. >> off the workbench screen  (like a pc)  it is an abominable idea....
  1597. > It's *custom* screens which should be avoided. You can still have as
  1598. > many *public* screens as you see fit!
  1599. > Kind regards Allan
  1600. Ahh, I mis-understood,  I understand what you mean now,
  1601. but,  the question I now have is -  why ??
  1602. Sure,  if you have something that is general purposefull,
  1603. you may want to hang other things off it's screen, then sure,
  1604. I see no problem here...
  1605. But,  If I have an application that I don't want anybody messing 
  1606. around with,  why not use CUSTOMSCREEN   ??
  1607. Please explain your reason for disliking custom screens....  ??
  1608. Regards
  1609. _________________________________________
  1610. Colin Wenzel.  Quensland, Australia.
  1611. EMAIL:  colstv@hotkey.net.au
  1612. URL:       http://www.hotkey.net.au/~colstv/
  1613. AMIGA: 4000T,  68060/50,  150Mb RAM,  
  1614.                OS 3.9,  Spectrum Gfx Card + P96.
  1615. Need an Image Generator For CATV  ??
  1616.        http://connect.to/products
  1617. _________________________________________
  1618. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1619. eGroups is now Yahoo! Groups
  1620. Click here for more details
  1621. http://click.egroups.com/1/11231/0/_/451227/_/981200411/
  1622. ---------------------------------------------------------------------_->
  1623. @ENDNODE
  1624. @NODE "Mail_43" " Re: Re: Custom screens (was: Re: Can someone look at this code?) "
  1625. Date: 02-03-01 13:20:32
  1626. Subject: @{b}Re: Re: Custom screens (was: Re: Can someone look at this code?)@{ub}
  1627.  Hi Allan,
  1628. > Perhaps there's some use for them. But I think they're only present to
  1629. > offer backward compatibility, as kick 1.3 didn't have public screens.
  1630. I think you're right, in the RKM there is a note saying that until v37 he only public screen was the workbench one and all others were custom so I think this was an improvement in the OS.
  1631. > hmm... I'd like to have my reminder program popup messages on the front
  1632. > most screen, even if this is a game that I'm currently playing. I could
  1633. > also imagine that I'd like to have 'Lupe' running ontop of the game, to
  1634. > look closer at some gfx details. Or perhaps Clock, if I need to keep
  1635. > track of time while playing etc. etc.
  1636. > Under some circumstances you may want to make your screen custom for
  1637. > speed reasons, but then you could have it as an option for the user.
  1638. > Personally I'd often prefer to trade the faster scrolling away for
  1639. > the ability to open a shell on the screen :-)
  1640. Whoa! I haven't thought to that, mmm..., cool, a clock on the game screen, now I think it was a good idea having both a direct-access and a WPA8() gfx routines. See ya
  1641.  Gabriele
  1642. TiscaliNet, libero accesso ad Internet.
  1643. http://www.tiscalinet.it
  1644. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1645. eGroups is now Yahoo! Groups
  1646. Click here for more details
  1647. http://click.egroups.com/1/11231/0/_/451227/_/981202880/
  1648. ---------------------------------------------------------------------_->
  1649. @ENDNODE
  1650. @NODE "Mail_44" " GCC link prob "
  1651. Date: 02-03-01 13:31:59
  1652. Subject: @{b}GCC link prob@{ub}
  1653.  Hello,
  1654.   Im having troubles compiling MUI developer package demos with GCC
  1655.  (last geekgadgets "official" version). I get this link error:
  1656. /gg/lib/libamiga.a(setattrs.o)(.text+0x4): undefined reference to `IntuitionBase'
  1657.   Any1 knows whats missing?! Ive tryed many intuition includes and so.
  1658.  Thank You
  1659.  Jose Andias
  1660. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1661. eGroups is now Yahoo! Groups
  1662. Click here for more details
  1663. http://click.egroups.com/1/11231/0/_/451227/_/981207163/
  1664. ---------------------------------------------------------------------_->
  1665. @ENDNODE
  1666. @NODE "Mail_45" " Re: GCC link prob "
  1667. Date: 02-03-01 17:32:49
  1668. Subject: @{b}Re: GCC link prob@{ub}
  1669. Hello Jose
  1670. On 03-Feb-01, you wrote:
  1671. > Hello,
  1672. >  Im having troubles compiling MUI developer package demos with GCC
  1673. > (last geekgadgets "official" version). I get this link error:
  1674. > /gg/lib/libamiga.a(setattrs.o)(.text+0x4): undefined reference to
  1675. > `IntuitionBase'
  1676. >  Any1 knows whats missing?! Ive tryed many intuition includes and so.
  1677. > Thank You
  1678. > Jose Andias
  1679. Even though you may have included the file  "proto/intuition.h",  you  will
  1680. need to define
  1681.     struct IntuitionBase    *IntuitionBase
  1682. yourself somewhere in the global scope of your program (the proto file only
  1683. declares it as an extern). Don't forget that you will also need to open the
  1684. Intuition library yourself as libamiga doesn't do it for you.
  1685. Regards
  1686. Steve
  1687. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1688. eGroups is now Yahoo! Groups
  1689. Click here for more details
  1690. http://click.egroups.com/1/11231/0/_/451227/_/981221647/
  1691. ---------------------------------------------------------------------_->
  1692. @ENDNODE
  1693. @NODE "Mail_46" " New poll for amiga-c "
  1694. Date: 02-04-01 00:38:27
  1695. Subject: @{b}New poll for amiga-c@{ub}
  1696. Enter your vote today!  A new poll has been created for the 
  1697. amiga-c group:
  1698. What 'C' compiler system do you use? 
  1699.   o StormC 
  1700.   o StormGCC 
  1701.   o SAS C 
  1702.   o Hisoft C++ 
  1703.   o VBCC 
  1704.   o gcc 
  1705.   o Dice 
  1706.   o Other 
  1707. To vote, please visit the following web page:
  1708. http://groups.yahoo.com/group/amiga-c/polls 
  1709. Note: Please do not reply to this message. Poll votes are 
  1710. not collected via email. To vote, you must go to the Yahoo! Groups 
  1711. web site listed above.
  1712. Thanks!
  1713. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms
  1714. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1715. eGroups is now Yahoo! Groups
  1716. Click here for more details
  1717. http://click.egroups.com/1/11231/0/_/451227/_/981243509/
  1718. ---------------------------------------------------------------------_->
  1719. @ENDNODE
  1720. @NODE "Mail_47" " Re: GCC link prob "
  1721. Date: 02-04-01 01:04:09
  1722. Subject: @{b}Re: GCC link prob@{ub}
  1723. Hi Stephen
  1724. On 03-Feb-01, you wrote:
  1725. > Even though you may have included the file  "proto/intuition.h",  you  will
  1726. > need to define
  1727. >    struct IntuitionBase    *IntuitionBase
  1728. >    
  1729. > yourself somewhere in the global scope of your program (the proto file only
  1730. > declares it as an extern). Don't forget that you will also need to open the
  1731. > Intuition library yourself as libamiga doesn't do it for you.
  1732.   Ok, thank you very much. The prob was i was building on a compiler
  1733.  and using a lib that opened intuition lib for me and so. Everything
  1734.  went fine, thanks.
  1735. Regards
  1736.              .           .
  1737.   .----------|Jose Andias|-----------.
  1738. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1739. eGroups is now Yahoo! Groups
  1740. Click here for more details
  1741. http://click.egroups.com/1/11231/0/_/451227/_/981285067/
  1742. ---------------------------------------------------------------------_->
  1743. @ENDNODE
  1744. @NODE "Mail_48" " Re: ObtainBestPen (was: Re: Can someone look at this code?) "
  1745. Date: 02-04-01 18:34:12
  1746. Subject: @{b}Re: ObtainBestPen (was: Re: Can someone look at this code?)@{ub}
  1747. Hello Allan
  1748. > The problem with not setting this tag is as I understand that all your
  1749. > screen colours will be private. So you can use them, but all other
  1750. > programs won't be able to obtain colours on your screen, thus have to
  1751. > fall back on some low colour look (as you mention with ReAction, which
  1752. > ignore the style setting).
  1753. Ok, I finally see where my problem is at.  So however I end up setting
  1754. up the pens, with ObtainBestPen or as Colin suggested, when it is
  1755. done I will have two sets of pens, what the system sets up and the ones
  1756. I set up.  I was looking to use only the one set and I can see where
  1757. the sharing would cause problems now.  Thanks for clarifying it.
  1758. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1759. eGroups is now Yahoo! Groups
  1760. Click here for more details
  1761. http://click.egroups.com/1/11231/0/_/451227/_/981311921/
  1762. ---------------------------------------------------------------------_->
  1763. @ENDNODE
  1764. @NODE "Mail_49" " Re: Can someone look at this code? "
  1765. Date: 02-04-01 18:36:27
  1766. Subject: @{b}Re: Can someone look at this code?@{ub}
  1767. Hello Colin
  1768. On 02-Feb-01, Colin Wenzel wrote:
  1769. > On 02-Feb-01, Jack York wrote:
  1770. > -snip-
  1771. >>  Does one of your programs have custom colors 
  1772. >> that you change after it is up and running?  
  1773. >> Don't you see it start  in one color and then 
  1774. >> switch to another this way?
  1775. >> Jack
  1776. > All of them that use a custom screen use custom colours,
  1777. > and no, you don't see it, because the pens are set within
  1778. > microseconds after the display opens,
  1779. > of course, the pens are set before I attach any GUI elements...
  1780. > Here is a bit of a program I have......
  1781. Thanks for including the code Colin.  I actually remember
  1782. doing it that way at one time but I guess I got sidetracked
  1783. using the tag settings.  Didn't realize I had taken a wrong turn.
  1784. Looks like I have a lot of code to change. :(
  1785. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1786. eGroups is now Yahoo! Groups
  1787. Click here for more details
  1788. http://click.egroups.com/1/11231/0/_/451227/_/981312056/
  1789. ---------------------------------------------------------------------_->
  1790. @ENDNODE
  1791. @NODE "Mail_50" " Enforcer, MuForce etc... "
  1792. Date: 02-04-01 20:28:03
  1793. Subject: @{b}Enforcer, MuForce etc...@{ub}
  1794. Hiya,
  1795.    I use MuForce in it's basic capacity in that I have it running when
  1796. finally testing my applications.
  1797.    Because of the way I normally program with many small functions it is
  1798. normally very easy to locate the cause of a hit especially as they are most
  1799. likely a NULL poitner to something.
  1800.    However; I have a real sly one to hunt down; sly in the fact that it
  1801. doesn't always happen and when it does happen it isn't always the same.  I
  1802. think it is one of these that really depends on the size of the exe, what's
  1803. where in memory etc.
  1804.    Now I'm assuming I need to compile the application with debug info and
  1805. run additional tools; so my question is what do I need to do achieve this?
  1806.    I am using StormGCC and basically I need it such that I can use the
  1807. 'FindHit' tool or similar to try and pinpoint the exact cause of the
  1808. problem.
  1809.    All help will be greatly appreciated as I would like to solve this
  1810. problem before I carry on with other parts of the application.
  1811. Kind regards...
  1812. Cremlin Software - http://www.cremlinsoftware.org
  1813. Founder, lead programmer - ghandi@cremlinsoftware.org
  1814. Production, programmer - anj@cremlinsoftware.org
  1815. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1816. eGroups is now Yahoo! Groups
  1817. Click here for more details
  1818. http://click.egroups.com/1/11231/0/_/451227/_/981314907/
  1819. ---------------------------------------------------------------------_->
  1820. @ENDNODE
  1821. @NODE "Mail_51" " Re: Enforcer, MuForce etc... "
  1822. Date: 02-05-01 00:37:21
  1823. Subject: @{b}Re: Enforcer, MuForce etc...@{ub}
  1824. On 04-Feb-01 Alexander Niven-Jenkins wrote:
  1825. >   I am using StormGCC and basically I need it such that I can use the
  1826. > 'FindHit' tool or similar to try and pinpoint the exact cause of the
  1827. > problem.
  1828. You need to use the StormC Version of FindHit: StormC:Tools/FindHit
  1829. Turn on big debug files and look into the Readme.
  1830. Bye, Chris
  1831.             __
  1832.            ///
  1833.       __  ///  Amiga 4000T 040/40      Team *AMIGA*
  1834.       \\\///
  1835.        \XX/    http://www.riednet.wh.tu-darmstadt.de/~chris/
  1836. "Auch der Schirmherr der Aktion, Alt-Oberb
  1837. rgermeister Manfred
  1838.  Rommel, schl
  1839. gt die Werbetrommel und Oberb
  1840. rgermeister Wolfgang
  1841.  Schuster f
  1842. r die Aktion."
  1843.                     (Zeitungsmeldung)
  1844. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1845. eGroups is now Yahoo! Groups
  1846. Click here for more details
  1847. http://click.egroups.com/1/11231/0/_/451227/_/981330092/
  1848. ---------------------------------------------------------------------_->
  1849. @ENDNODE
  1850. @NODE "Mail_52" " Re: Re: GCC link prob "
  1851. Date: 02-05-01 10:06:19
  1852. Subject: @{b}Re: Re: GCC link prob@{ub}
  1853. On Sun, Feb 04, 2001 at 01:04:09AM +0100, Jose Andias wrote:
  1854. > Hi Stephen
  1855. > On 03-Feb-01, you wrote:
  1856. > > Even though you may have included the file  "proto/intuition.h",  you  will
  1857. > > need to define
  1858. > >    struct IntuitionBase    *IntuitionBase
  1859. > >    
  1860. > > yourself somewhere in the global scope of your program (the proto file only
  1861. > > declares it as an extern). Don't forget that you will also need to open the
  1862. > > Intuition library yourself as libamiga doesn't do it for you.
  1863. >   Ok, thank you very much. The prob was i was building on a compiler
  1864. >  and using a lib that opened intuition lib for me and so. Everything
  1865. >  went fine, thanks.
  1866.   GCC does support this as well. Apparently, you don't use libnix because
  1867.   if you would "auto-opening of system libraries" would work out-of-the-box.
  1868.   Not using libnix means you have to add "-lauto" when linking.
  1869.   Gunther
  1870. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1871. eGroups is now Yahoo! Groups
  1872. Click here for more details
  1873. http://click.egroups.com/1/11231/0/_/451227/_/981364175/
  1874. ---------------------------------------------------------------------_->
  1875. @ENDNODE
  1876. @NODE "Mail_53" " ObtainBestPen Again "
  1877. Date: 02-05-01 18:45:28
  1878. Subject: @{b}ObtainBestPen Again@{ub}
  1879. Hello Allan
  1880. On 02-Feb-01, Allan Odgaard wrote:
  1881. > Hello Jack,
  1882. >> Then I don't understand how the function works.  I thought it
  1883. >> just returned a value of one pen that approximates what you
  1884. >> asked for?  [...]
  1885. > Indeed, but if no match (precise enough) is found, a new pen is
  1886. > allocated. Granted more free colours exist in the palette.
  1887. I'm trying to use this to solve my screen color problems.  I tried
  1888. getting a color like red to make sure I was doing it correctly
  1889. but no matter what I do, the number one pen is returned.  I am
  1890. using a copy of the workbench colors to set this up and the 
  1891. number one pen is black.  The syntax I'm using is
  1892. color = ObtainBestPen( colormap, 0xFFFFFFFF, 0x0, 0x0, 
  1893.       OBP_Precision, PRECISION_GUI, OBP_FailIfBad, TRUE)
  1894. I have also used the example you listed in an earlier thread of
  1895. #define FULL9x0 9x*0x01010101)
  1896. then 
  1897. color = ObtainBestPen( colormap, FULL(255), FULL(0), FULL(0),
  1898.       OBP_Precision, PRECISION_GUI, OBP_FailIfBad, TRUE)
  1899. In either case, the result is 1.  Actually, if I move the values around,
  1900. to say FULL(0), FULL(0), FULL(255), the result is still 1.  Any
  1901. idea where my problem is?
  1902. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1903. eGroups is now Yahoo! Groups
  1904. Click here for more details
  1905. http://click.egroups.com/1/11231/0/_/451227/_/981399004/
  1906. ---------------------------------------------------------------------_->
  1907. @ENDNODE
  1908. @NODE "Mail_54" " Re: Who use vbcc (was: Re: Hi, I'm New) "
  1909. Date: 02-05-01 21:08:26
  1910. Subject: @{b}Re: Who use vbcc (was: Re: Hi, I'm New)@{ub}
  1911. Recieved your message about [amiga-c] Who use vbcc (was: Re: Hi, I'm New), on 31-Dec-00
  1912. >> and I'm just wondering how many people use vbbc ?
  1913. > Perhaps Mike could setup a survey at eGroups!?!
  1914. Added a poll for anybody interested in taking part...
  1915. Regards,
  1916. M!ke C
  1917. .--------------------------------- ---- -    -- --------.
  1918. | AMiGA 1200EZT 060/PPC@240Mhz,82Mb RAM __/\__          |
  1919. | 3 HDD,DD FD,5 CD-ROMS,CDrW,ZiP250     \ o0 / bUDDa^SDS|
  1920. | SCSI+IDE, 56kModem, BVGfX, 19"VDU     /_'-_\          |
  1921. `------------------------------- --- -    \/   -- ------'
  1922.   http://www.BuddasWurld.com              ICQ: 29173597
  1923. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1924. eGroups is now Yahoo! Groups
  1925. Click here for more details
  1926. http://click.egroups.com/1/11231/0/_/451227/_/981408316/
  1927. ---------------------------------------------------------------------_->
  1928. @ENDNODE
  1929. @NODE "Mail_55" " Re: ObtainBestPen Again "
  1930. Date: 02-05-01 21:14:59
  1931. Subject: @{b}Re: ObtainBestPen Again@{ub}
  1932. Hello Jack,
  1933. > [...] The syntax I'm using is
  1934. > color = ObtainBestPen( colormap, 0xFFFFFFFF, 0x0, 0x0, 
  1935. >      OBP_Precision, PRECISION_GUI, OBP_FailIfBad, TRUE)
  1936. TAG_DONE!!!
  1937. > In either case, the result is 1.  Actually, if I move the values
  1938. around,
  1939. > to say FULL(0), FULL(0), FULL(255), the result is still 1.  Any
  1940. > idea where my problem is?
  1941. hmm... and pen 1 is not red? How do you obtain the colourmap pointer?
  1942. Kind regards Allan
  1943. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1944. eGroups is now Yahoo! Groups
  1945. Click here for more details
  1946. http://click.egroups.com/1/11231/0/_/451227/_/981405049/
  1947. ---------------------------------------------------------------------_->
  1948. @ENDNODE
  1949. @NODE "Mail_56" " Re: Who use vbcc (was: Re: Hi, I'm New) "
  1950. Date: 02-06-01 03:34:39
  1951. Subject: @{b}Re: Who use vbcc (was: Re: Hi, I'm New)@{ub}
  1952. Hello Mike,
  1953. On 06-Feb-01, you wrote:
  1954. > Hi ,
  1955. > Recieved your message about [amiga-c] Who use vbcc (was: Re: Hi, I'm New),
  1956. > on 31-Dec-00
  1957. >>> and I'm just wondering how many people use vbbc ?
  1958. >> Perhaps Mike could setup a survey at eGroups!?!
  1959. > Added a poll for anybody interested in taking part...
  1960. Thanks :)
  1961. Regards
  1962. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  1963. eGroups is now Yahoo! Groups
  1964. Click here for more details
  1965. http://click.egroups.com/1/11231/0/_/451227/_/981425123/
  1966. ---------------------------------------------------------------------_->
  1967. @ENDNODE
  1968. @NODE "Mail_57" " Re: ObtainBestPen Again "
  1969. Date: 02-06-01 03:28:41
  1970. Subject: @{b}Re: ObtainBestPen Again@{ub}
  1971. On 06-Feb-01, Jack York wrote:
  1972. > Hello Allan
  1973. > On 02-Feb-01, Allan Odgaard wrote:
  1974. >> Hello Jack,
  1975. >>> Then I don't understand how the function works.  I thought it
  1976. >>> just returned a value of one pen that approximates what you
  1977. >>> asked for?  [...]
  1978. >> Indeed, but if no match (precise enough) is found, a new pen is
  1979. >> allocated. Granted more free colours exist in the palette.
  1980. > I'm trying to use this to solve my screen color problems.  I tried
  1981. > getting a color like red to make sure I was doing it correctly
  1982. > but no matter what I do, the number one pen is returned.  I am
  1983. > using a copy of the workbench colors to set this up and the 
  1984. > number one pen is black.  The syntax I'm using is
  1985. > color = ObtainBestPen( colormap, 0xFFFFFFFF, 0x0, 0x0, 
  1986. >      OBP_Precision, PRECISION_GUI, OBP_FailIfBad, TRUE)
  1987. > I have also used the example you listed in an earlier thread of
  1988. > #define FULL9x0 9x*0x01010101)
  1989. > then 
  1990. > color = ObtainBestPen( colormap, FULL(255), FULL(0), FULL(0),
  1991. >      OBP_Precision, PRECISION_GUI, OBP_FailIfBad, TRUE)
  1992. > In either case, the result is 1. Actually, if I move the values
  1993. > around, to say FULL(0), FULL(0), FULL(255), the result is still 1.
  1994. > Any idea where my problem is?
  1995. > Jack
  1996. Here are a couple of modules I snipped from a working program,
  1997. I hope this helps....
  1998. Regards
  1999. _________________________________________
  2000. Colin Wenzel.  Quensland, Australia.
  2001. EMAIL:  colstv@hotkey.net.au
  2002. URL:       http://www.hotkey.net.au/~colstv/
  2003. AMIGA: 4000T,  68060/50,  150Mb RAM,  
  2004.                OS 3.9,  Spectrum Gfx Card + P96.
  2005. Need an Image Generator For CATV  ??
  2006.        http://connect.to/products
  2007. _________________________________________
  2008. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2009. eGroups is now Yahoo! Groups
  2010. Click here for more details
  2011. http://click.egroups.com/1/11231/0/_/451227/_/981426544/
  2012. ---------------------------------------------------------------------_->
  2013. @ENDNODE
  2014. @NODE "Mail_58" " Re: ObtainBestPen Again "
  2015. Date: 02-06-01 04:38:26
  2016. Subject: @{b}Re: ObtainBestPen Again@{ub}
  2017. Hello Allan
  2018. On 05-Feb-01, Allan Odgaard wrote:
  2019. > Hello Jack,
  2020. >> [...] The syntax I'm using is
  2021. >> color = ObtainBestPen( colormap, 0xFFFFFFFF, 0x0, 0x0, 
  2022. >>      OBP_Precision, PRECISION_GUI, OBP_FailIfBad, TRUE)
  2023. > TAG_DONE!!!
  2024. I thought I finally typed something correctly. :-0  It is in the code
  2025. at least.
  2026. >> In either case, the result is 1.  Actually, if I move the values
  2027. > around,
  2028. >> to say FULL(0), FULL(0), FULL(255), the result is still 1.  Any
  2029. >> idea where my problem is?
  2030. > hmm... and pen 1 is not red? How do you obtain the colourmap pointer?
  2031. I don't think so.  I tried it two ways: first, I locked the workbench screen
  2032. and used that for the GetScreenDrawInfo call.  When that didn't
  2033. work I used the screen I created in the call.   If I run paletter prefs, pen
  2034. is black.  And I'm not setting any colors on my custom screen so I think 
  2035. it defaults to black also.  I've included the relevant code here:
  2036. #define RED(x) ((x >> 8) & 0xf)
  2037. #define BLUE(x) ((x >> 4) & 0xf)
  2038. #define GREEN(x) (x & 0xf)
  2039. #define FULL(x) (x*0x01010101)
  2040. void main(void)
  2041.    strcut Screen *scr;
  2042.    struct DrawInfo *drinfo = GetScreenDrawInfo(scr);
  2043.    WORD mapping[8];
  2044.    Create screen();
  2045.    set_mapping(scr, drinfo, mapping);
  2046. VOID set_mapping(struct Screen *screen, struct DrawInfo *drinfo, 
  2047.                                      WORD mapping[])
  2048.     mapping[0] = drinfo->dri_Pens[BACKGROUNDPEN];
  2049.     mapping[1] = drinfo->dri_Pens[SHADOWPEN];
  2050.     mapping[2] = drinfo->dri_Pens[SHINEPEN];
  2051.     mapping[3] = drinfo->dri_Pens[FILLPEN];
  2052.     if (screen->RastPort.BitMap->Depth > 2)
  2053.     {
  2054.             struct ColorMap *cmap = screen->ViewPort.ColorMap;
  2055.              
  2056.             mapping[4] = ObtainBestPen(cmap,  FULL(255), 
  2057.                                                                             
  2058.     FULL(0), 
  2059.                                                                             
  2060.     FULL(0),  
  2061.                                  OBP_Precision, PRECISION_GUI, 
  2062.                                  OBP_FailIfBad, TRUE,
  2063.                                  TAG_END);
  2064.             printf("%d\n",mapping[4]);   //result always 1
  2065.     }
  2066. }         
  2067. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2068. eGroups is now Yahoo! Groups
  2069. Click here for more details
  2070. http://click.egroups.com/1/11231/0/_/451227/_/981434713/
  2071. ---------------------------------------------------------------------_->
  2072. @ENDNODE
  2073. @NODE "Mail_59" " Re: ObtainBestPen Again "
  2074. Date: 02-06-01 04:40:38
  2075. Subject: @{b}Re: ObtainBestPen Again@{ub}
  2076. Hello Colin
  2077. On 05-Feb-01, Colin Wenzel wrote:
  2078. > Here are a couple of modules I snipped from a working program,
  2079. > I hope this helps....
  2080. I appreciate that Colin.  It was pretty close to what I already had
  2081. so I must have something obvious missing since your code works.
  2082. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2083. eGroups is now Yahoo! Groups
  2084. Click here for more details
  2085. http://click.egroups.com/1/11231/0/_/451227/_/981434708/
  2086. ---------------------------------------------------------------------_->
  2087. @ENDNODE
  2088. @NODE "Mail_60" " PIPE and FIFO "
  2089. Date: 02-06-01 08:48:37
  2090. Subject: @{b}PIPE and FIFO@{ub}
  2091. Hello,
  2092. sorry for beeing a little bit of topic, but it is a technical question and so I thing its ok to ask here.
  2093. What are the restrictions of PIPE: and FIFO:? Can I use them like a normal File?
  2094. I want to do the followig:
  2095. I have an AIFF-audiofile, some 100 MBytes in size. I want to convert this file with "sox" into Sun .au format. This new Sun .au file is one input file of an animation/sound mixer program. As all files are very big I would like to avoid temporary files. 
  2096. So I dream of something like this:
  2097. Shell_1:
  2098. sox Sound.Aiff Pipe:Sound.au
  2099. (Write to pipe:)
  2100. Shell_2:
  2101. SndAnimMixer Pipe:Sound.au AnimFile Resultfile
  2102. (read from pipe:)
  2103. Is that possible? If yes, what restrictions apply to "Pipe-Files"? Can I as programmer seek in a pipe-file and rewind again? 
  2104. Lets say I want to read parts of a file in a non continous order. Is that possible? Can I read parts of that file multiple times? If yes, how does it work internally?
  2105. Kind regards Alexander Fritsch
  2106. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2107. eGroups is now Yahoo! Groups
  2108. Click here for more details
  2109. http://click.egroups.com/1/11231/0/_/451227/_/981445739/
  2110. ---------------------------------------------------------------------_->
  2111. @ENDNODE
  2112. @NODE "Mail_61" " Re: PIPE and FIFO "
  2113. Date: 02-06-01 11:49:33
  2114. Subject: @{b}Re: PIPE and FIFO@{ub}
  2115. Hello Fritsch
  2116. On 06-Feb-01, you wrote:
  2117. 8<--- snip ---
  2118. > Is that possible? If yes, what restrictions apply to "Pipe-Files"? Can I
  2119. > as programmer seek in a pipe-file and rewind again? Lets say I want to
  2120. > read parts of a file in a non continous order. Is that possible? Can I
  2121. > read parts of that file multiple times? If yes, how does it work
  2122. > internally?
  2123. Named pipes are like regular files but they  can't  be  accessed  randomly.
  2124. Also remember that the writing program will block once the pipe has reached
  2125. 4k, and will only unblock  once  someone  starts  reading  the  pipe.  More
  2126. importantly,  once  data has been read from a pipe it's gone forever (which
  2127. explains the seeking problem).
  2128. On the subject of pipes, I've never understood why some programs refuse  to
  2129. operate with named pipes. For example, if I
  2130.     ls >PIPE:out
  2131. and then
  2132.     ged PIPE:out
  2133. I don't get the output from ls in the GoldEd window. I can't understand why
  2134. there should be a problem.
  2135. Is there some special coding consideration when dealing with named pipes? I
  2136. can  understand  a  program  not handling anonymous pipes because that does
  2137. require special consideration, but a named pipe is just a regular file.
  2138. Regards
  2139. Steve
  2140. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2141. eGroups is now Yahoo! Groups
  2142. Click here for more details
  2143. http://click.egroups.com/1/11231/0/_/451227/_/981460255/
  2144. ---------------------------------------------------------------------_->
  2145. @ENDNODE
  2146. @NODE "Mail_62" " __CHIP "
  2147. Date: 02-06-01 12:56:38
  2148. Subject: @{b}__CHIP@{ub}
  2149. The identifier for chip memory in Dice is __chip. Now the question. For
  2150. Hisoft C++ is ....?
  2151. Please help me.
  2152. ***************************************************************************
  2153. DISCLAIMER: Este mensaje contiene informaci
  2154. n propietaria 
  2155. de la cual parte o toda puede contener informaci
  2156. n confidencial
  2157. o protegida legalmente. Esta exclusivamente destinado al 
  2158. usuario de destino.
  2159. Si, por un error de envio o transmisi
  2160. n, ha recibido este mensaje 
  2161. y usted no es el destinatario del mismo, por favor, notifique
  2162. de este hecho al remitente.
  2163. Si no es el destinatario final de este mensaje no debe usar, 
  2164. informar, distribuir, imprimir, copiar o difundir este mensaje 
  2165. bajo ning
  2166. n medio.
  2167. ---------
  2168. DISCLAIMER: This e-mail contains propietary information some 
  2169. or all of which may be legally privileged. It is for the intended 
  2170. recipient only. If an addressing or transmission error has 
  2171. misdirected this e-mail, please notify the author by replying to
  2172. this e-mail. If you are not the intended recipient you must not use,
  2173. disclose, distribute, copy, print or relay on this e-mail.
  2174. ***************************************************************************
  2175. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2176. eGroups is now Yahoo! Groups
  2177. Click here for more details
  2178. http://click.egroups.com/1/11231/0/_/451227/_/981460618/
  2179. ---------------------------------------------------------------------_->
  2180. @ENDNODE
  2181. @NODE "Mail_63" " Re: Re: ObtainBestPen Again "
  2182. Date: 02-06-01 14:33:28
  2183. Subject: @{b}Re: Re: ObtainBestPen Again@{ub}
  2184. On Mon, 5 Feb 2001, Jack York wrote:
  2185. [code snipped]
  2186. >             printf("%d\n",mapping[4]);   //result always 1
  2187. >     }
  2188. > }         
  2189. Um, try this:
  2190. printf("%d\n", (LONG)mapping[4]);
  2191. Good luck!
  2192. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2193. eGroups is now Yahoo! Groups
  2194. Click here for more details
  2195. http://click.egroups.com/1/11231/0/_/451227/_/981466765/
  2196. ---------------------------------------------------------------------_->
  2197. @ENDNODE
  2198. @NODE "Mail_64" " Re: Re: ObtainBestPen Again "
  2199. Date: 02-06-01 15:15:24
  2200. Subject: @{b}Re: Re: ObtainBestPen Again@{ub}
  2201. On Tue, Feb 06, 2001 at 08:33:28AM -0500, Gregory Roberts II wrote:
  2202. > printf("%d\n", (LONG)mapping[4]);
  2203.   "%d" denotes an _int_ value.
  2204.   Gunther
  2205. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2206. eGroups is now Yahoo! Groups
  2207. Click here for more details
  2208. http://click.egroups.com/1/11231/0/_/451227/_/981469132/
  2209. ---------------------------------------------------------------------_->
  2210. @ENDNODE
  2211. @NODE "Mail_65" " Re: Re: ObtainBestPen Again "
  2212. Date: 02-06-01 15:38:09
  2213. Subject: @{b}Re: Re: ObtainBestPen Again@{ub}
  2214. On Tue, 6 Feb 2001, Gunther Nikl wrote:
  2215. > On Tue, Feb 06, 2001 at 08:33:28AM -0500, Gregory Roberts II wrote:
  2216. > > printf("%d\n", (LONG)mapping[4]);
  2217. >   "%d" denotes an _int_ value.
  2218. >   Gunther
  2219. You're right, of course.  The point being, %d expects a 32-bit value
  2220. (since int is 32 bit under most Amiga compilers), whereas mapping[4]
  2221. contains a 16-bit value, thereby (potentially) causing printf to display
  2222. the wrong thing.  As it happens (and I'm sure you know), under most Amiga
  2223. compilers int == LONG (i.e. signed, 32-bit value), so this should be ok.
  2224. But again, you are absolutely correct.  That's what I get for firing off
  2225. e-mail before I've had my morning caffiene.  :-)
  2226. Thanks for the correction!
  2227. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2228. eGroups is now Yahoo! Groups
  2229. Click here for more details
  2230. http://click.egroups.com/1/11231/0/_/451227/_/981470652/
  2231. ---------------------------------------------------------------------_->
  2232. @ENDNODE
  2233. @NODE "Mail_66" " Re: __CHIP "
  2234. Date: 02-06-01 17:44:26
  2235. Subject: @{b}Re: __CHIP@{ub}
  2236. Hello Daniel,
  2237. [ Subject: [amiga-c] __CHIP ]
  2238. > The identifier for chip memory in Dice is __chip. Now the question.
  2239. > For Hisoft C++ is ....?
  2240. If it's like StormC then I believe it's 
  2241. #pragma chip
  2242.    ....
  2243. #pragma fast
  2244. Btw: perhaps you could drop your 20-30 lines of disclaimer when posting
  2245. to a mailinglist? Especially as the text is quite stupid...
  2246. Kind regards Allan
  2247. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2248. eGroups is now Yahoo! Groups
  2249. Click here for more details
  2250. http://click.egroups.com/1/11231/0/_/451227/_/981478682/
  2251. ---------------------------------------------------------------------_->
  2252. @ENDNODE
  2253. @NODE "Mail_67" " Re: Custom screens (was: Re: Can someone look at this code?) "
  2254. Date: 02-06-01 17:55:56
  2255. Subject: @{b}Re: Custom screens (was: Re: Can someone look at this code?)@{ub}
  2256. Hello Colin,
  2257. > But,  If I have an application that I don't want anybody messing 
  2258. > around with,  why not use CUSTOMSCREEN   ??
  2259. As long as you don't call SetDefaultPubScreen() then no windows will
  2260. mess up your display.
  2261. > Please explain your reason for disliking custom screens....  ??
  2262. I thought I did so in the other letter. Why don't you explain your
  2263. reasons for disallowing the user to open windows on your screen, even
  2264. when he really wants to? Reminds me a little of the demo-days, where
  2265. people went through a lot of trouble to make sure that graphics and
  2266. modules couldn't be ripped from the demos. No-one considered that users
  2267. wanted to hear the modules in trackers running in the backgroumd, use
  2268. the graphics for backgrounds pictures, or print them in magazines when
  2269. reviewing demos etc.
  2270. Why is there some strange idea that the programmer knows what the user
  2271. want, and should try to limit the user in a way that's not just
  2272. avoiding mistakes, but gives the super user a lot of trouble doing the
  2273. things he'd like to do?
  2274. Kind regards Allan
  2275. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2276. eGroups is now Yahoo! Groups
  2277. Click here for more details
  2278. http://click.egroups.com/1/11231/0/_/451227/_/981478687/
  2279. ---------------------------------------------------------------------_->
  2280. @ENDNODE
  2281. @NODE "Mail_68" " Re: Custom screens (was: Re: Can someone look at this code?) "
  2282. Date: 02-06-01 22:52:37
  2283. Subject: @{b}Re: Custom screens (was: Re: Can someone look at this code?)@{ub}
  2284. On 06-Feb-01, Allan Odgaard wrote:
  2285. >> But,  If I have an application that I don't want anybody messing 
  2286. >> around with,  why not use CUSTOMSCREEN   ??
  2287. > As long as you don't call SetDefaultPubScreen() then no windows will
  2288. > mess up your display.
  2289. Untrue. If it is necessary to keep other applications away from the screen it
  2290. would be best to keep it private.
  2291. >> Please explain your reason for disliking custom screens....  ??
  2292. > I thought I did so in the other letter. Why don't you explain your
  2293. > reasons for disallowing the user to open windows on your screen, even
  2294. > when he really wants to? Reminds me a little of the demo-days, where
  2295. > people went through a lot of trouble to make sure that graphics and
  2296. > modules couldn't be ripped from the demos.
  2297. I believe you mean they tried to make the demo do a whole lot very quickly
  2298. with a small size. Well, efficiency has nothing to do with scattering .iff
  2299. .8svx and .mod files all over the place. And when you freeze/kill the OS the
  2300. odds of any filesystems still being alive are dubious.
  2301. > No-one considered that users
  2302. > wanted to hear the modules in trackers running in the backgroumd, use
  2303. > the graphics for backgrounds pictures, or print them in magazines when
  2304. > reviewing demos etc.
  2305. A reviewer for a publication of a decent size would not find getting
  2306. screenshots difficult. And I've seen quite a few demo mods out and about.
  2307. > Why is there some strange idea that the programmer knows what the user
  2308. > want,
  2309. Why is there some strange idea that all users know what the programmer wants?
  2310. > and should try to limit the user in a way that's not just
  2311. > avoiding mistakes, but gives the super user a lot of trouble doing the
  2312. > things he'd like to do?
  2313. Because making the computer do its thing is more important. A 68000 at 7.15
  2314. MHz doesn't offer the headroom a dual Athlon 1.2GHz with a GeForce chip does.
  2315. Super users know this AFAIK. :-)
  2316.      __ /\          /\__   /\   :      xav2@xav.to
  2317.  __ //// /\  /\/\  / / _\ / /\  |   http://www.xav.to
  2318.  \\\/// __ \/    \/ /   \/ __ \ | A-2000 39M 030/882/50
  2319.   \\/ \/  \/\/\/\/\/ \__/\/  \/ :   IT ALL FREEZES!!!
  2320. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2321. eGroups is now Yahoo! Groups
  2322. Click here for more details
  2323. http://click.egroups.com/1/11231/0/_/451227/_/981496469/
  2324. ---------------------------------------------------------------------_->
  2325. @ENDNODE
  2326. @NODE "Mail_69" " Re: Custom screens (was: Re: Can someone look at this code?) "
  2327. Date: 02-06-01 23:52:15
  2328. Subject: @{b}Re: Custom screens (was: Re: Can someone look at this code?)@{ub}
  2329. Hello Xavier,
  2330. >> As long as you don't call SetDefaultPubScreen() then no windows will
  2331. >> mess up your display. [...]
  2332. > Untrue. [...]
  2333. Please elaborate! Are you talking about if the user runs a public screen
  2334. manager? Cause if he do so then surely it's because he wants to control
  2335. where windows should appear. I'm simply saying that by default you
  2336. shouldn't worry about visitor windows simply because you make your
  2337. screen public (which was the argument toward custom screens), further
  2338. actions will have to be taken by the user for this to happen.
  2339. >> [...] Reminds me a little of the demo-days, where
  2340. >> people went through a lot of trouble to make sure that graphics and
  2341. >> modules couldn't be ripped from the demos.
  2342. > I believe you mean they tried to make the demo do a whole lot very
  2343. > quickly with a small size. Well, efficiency has nothing to do with
  2344. > scattering .iff .8svx and .mod files all over the place. And when you
  2345. > freeze/kill the OS the odds of any filesystems still being alive are
  2346. > dubious.
  2347. No this is not what I ment. Some had special code to detect Action
  2348. Replay etc.  Besides, it was just a side node.
  2349. >> No-one considered that users wanted to hear the modules in trackers
  2350. >> running in the backgroumd, use the graphics for backgrounds pictures,
  2351. >> or print them in magazines when reviewing demos etc.
  2352. > A reviewer for a publication of a decent size would not find getting
  2353. > screenshots difficult.
  2354. I happen to know that it *was* a real problem for some! As I understood
  2355. it they photographed the monitor for the best result, thus needed a way
  2356. to freeze the demo or simply make a screen dump for static display.
  2357. > And I've seen quite a few demo mods out and about.
  2358. So? I didn't say all made an effort to obfuscate their music, nor that
  2359. patient "hackers" didn't manage to rip the music, or that the musician
  2360. simply gave it away...
  2361. >> Why is there some strange idea that the programmer knows what the
  2362. >> user want,
  2363. > Why is there some strange idea that all users know what the programmer
  2364. > wants? :-)
  2365. That idea has certainly escaped my attention. But based on your reply
  2366. I'm assuming that you're just a smart ass...
  2367. >> and should try to limit the user in a way that's not just avoiding
  2368. >> mistakes, but gives the super user a lot of trouble doing the things
  2369. >> he'd like to do?
  2370. > Because making the computer do its thing is more important. A 68000 at
  2371. > 7.15 MHz doesn't offer the headroom a dual Athlon 1.2GHz with a
  2372. > GeForce chip does.
  2373. What has this to do with anything? You may argue that a custom screens
  2374. allows you to bypass some system functions and thus do more lowlevel
  2375. rendering, but I've already touched this subject in another letter.
  2376. Besides, I doubt this is really the case. If it is then you're probably
  2377. just a lame programmer!
  2378. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2379. eGroups is now Yahoo! Groups
  2380. Click here for more details
  2381. http://click.egroups.com/1/11231/0/_/451227/_/981500012/
  2382. ---------------------------------------------------------------------_->
  2383. @ENDNODE
  2384. @NODE "Mail_70" " Re: Custom screens (was: Re: Can someone look at this code?) "
  2385. Date: 02-07-01 14:47:10
  2386. Subject: @{b}Re: Custom screens (was: Re: Can someone look at this code?)@{ub}
  2387. On 07-Feb-01, Allan Odgaard wrote:
  2388. > Hello Colin,
  2389. >> But,  If I have an application that I don't want anybody messing 
  2390. >> around with,  why not use CUSTOMSCREEN   ??
  2391. > As long as you don't call SetDefaultPubScreen() then no windows will
  2392. > mess up your display.
  2393. >> Please explain your reason for disliking custom screens....  ??
  2394. > I thought I did so in the other letter. Why don't you explain your
  2395. > reasons for disallowing the user to open windows on your screen, even
  2396. > when he really wants to? Reminds me a little of the demo-days, where
  2397. > people went through a lot of trouble to make sure that graphics and
  2398. > modules couldn't be ripped from the demos. No-one considered that
  2399. > users wanted to hear the modules in trackers running in the
  2400. > backgroumd, use the graphics for backgrounds pictures, or print them
  2401. > in magazines when reviewing demos etc.
  2402. > Why is there some strange idea that the programmer knows what the
  2403. > user want, and should try to limit the user in a way that's not just
  2404. > avoiding mistakes, but gives the super user a lot of trouble doing
  2405. > the things he'd like to do?
  2406. > Kind regards Allan
  2407. Ok,  you have quite a valid point,  I really shouldn't disallow people access
  2408. to my screen when I don't really know what they are going to do with it,
  2409. so, in the interest of standardisation & compatibility between the
  2410. various older & newer coders here,  how about a working example of 
  2411. the  "propper" way to set up screens,  ( intuition >v39 compatible) 
  2412. keeping in mind,  a lot of coders have been doing things a certain 
  2413. way  (like me)  since WB1.2 & are unaware of the "new" compatible & 
  2414. optional  methods of doing apparently simple things like this, now...
  2415. Plus,  I would like to see some comments on why you set particular
  2416. options, incase the reason is not immediately obvious...
  2417. I think a nice example I would like to see, is opening up a public screen 
  2418. that has the same properties (clone) of the workbench screen,
  2419. to inherit it's palette & dimensions...
  2420. Regards
  2421. _________________________________________
  2422. Colin Wenzel.  Quensland, Australia.
  2423. EMAIL:  colstv@hotkey.net.au
  2424. URL:       http://www.hotkey.net.au/~colstv/
  2425. AMIGA: 4000T,  68060/50,  150Mb RAM,  
  2426.                OS 3.9,  Spectrum Gfx Card + P96.
  2427. Need an Image Generator For CATV  ??
  2428.        http://connect.to/products
  2429. _________________________________________
  2430. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2431. eGroups is now Yahoo! Groups
  2432. Click here for more details
  2433. http://click.egroups.com/1/11231/0/_/451227/_/981553653/
  2434. ---------------------------------------------------------------------_->
  2435. @ENDNODE
  2436. @NODE "Mail_71" " Re: Re: Custom screens (was: Re: Can someone look at this code?) "
  2437. Date: 02-07-01 15:18:49
  2438. Subject: @{b}Re: Re: Custom screens (was: Re: Can someone look at this code?)@{ub}
  2439. On Wed, Feb 07, 2001 at 11:47:10PM +1000, Colin Wenzel wrote:
  2440. > I think a nice example I would like to see, is opening up a public screen 
  2441. > that has the same properties (clone) of the workbench screen,
  2442. > to inherit it's palette & dimensions...
  2443.   Easy, just use "SA_LikeWorkbench" with V39+ :-)
  2444.   Gunther
  2445. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2446. eGroups is now Yahoo! Groups
  2447. Click here for more details
  2448. http://click.egroups.com/1/11231/0/_/451227/_/981555728/
  2449. ---------------------------------------------------------------------_->
  2450. @ENDNODE
  2451. @NODE "Mail_72" " Re: Custom screens (was: Re: Can someone look at this code?) "
  2452. Date: 02-07-01 16:05:06
  2453. Subject: @{b}Re: Custom screens (was: Re: Can someone look at this code?)@{ub}
  2454. On 08-Feb-01, Gunther Nikl wrote:
  2455. > On Wed, Feb 07, 2001 at 11:47:10PM +1000, Colin Wenzel wrote:
  2456. >> I think a nice example I would like to see, is opening up a public
  2457. >> screen that has the same properties (clone) of the workbench screen,
  2458. >> to inherit it's palette & dimensions...
  2459. >  Easy, just use "SA_LikeWorkbench" with V39+ :-)
  2460. >  Gunther
  2461. OK, but what do put in the other fields:
  2462.   SA_Left, 
  2463.   SA_Top,
  2464.   SA_Width,
  2465.   SA_Height,
  2466.   SA_DisplayID, 
  2467. If you don't know what size & type the WB 
  2468. screen is before hand...
  2469. Regards
  2470. _________________________________________
  2471. Colin Wenzel.  Quensland, Australia.
  2472. EMAIL:  colstv@hotkey.net.au
  2473. URL:       http://www.hotkey.net.au/~colstv/
  2474. AMIGA: 4000T,  68060/50,  150Mb RAM,  
  2475.                OS 3.9,  Spectrum Gfx Card + P96.
  2476. Need an Image Generator For CATV  ??
  2477.        http://connect.to/products
  2478. _________________________________________
  2479. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2480. eGroups is now Yahoo! Groups
  2481. Click here for more details
  2482. http://click.egroups.com/1/11231/0/_/451227/_/981558343/
  2483. ---------------------------------------------------------------------_->
  2484. @ENDNODE
  2485. @NODE "Mail_73" " Re: Re: Custom screens (was: Re: Can someone look at this code?) "
  2486. Date: 02-07-01 18:01:28
  2487. Subject: @{b}Re: Re: Custom screens (was: Re: Can someone look at this code?)@{ub}
  2488. On Thu, 8 Feb 2001, Colin Wenzel wrote:
  2489. > On 08-Feb-01, Gunther Nikl wrote:
  2490. > > On Wed, Feb 07, 2001 at 11:47:10PM +1000, Colin Wenzel wrote:
  2491. > >> I think a nice example I would like to see, is opening up a public
  2492. > >> screen that has the same properties (clone) of the workbench screen,
  2493. > >> to inherit it's palette & dimensions...
  2494. > >  Easy, just use "SA_LikeWorkbench" with V39+ :-)
  2495. > >  Gunther
  2496. > OK, but what do put in the other fields:
  2497. >   SA_Left, 
  2498. >   SA_Top,
  2499. >   SA_Width,
  2500. >   SA_Height,
  2501. >   SA_DisplayID, 
  2502. > If you don't know what size & type the WB 
  2503. > screen is before hand...
  2504. Now I know it's been awhile since I've looked at this seriously, but isn't
  2505. the beauty of TAG lists that you only specify the ones you care about and
  2506. everyone else gets reasonable defaults?   So, all you'd pass is
  2507. SA_LikeWorkbench, TRUE, TAG_END  (or is it TAG_DONE?  damn...)
  2508. Certainly, you can do an OpenWindowTagList without passing anything other
  2509. than TAG_END.  :-)  (I *do* remember playing with it when 2.0 first came
  2510. out...)
  2511. Please correct me if I'm wrong on this (like I said, it has been awhile)
  2512. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2513. eGroups is now Yahoo! Groups
  2514. Click here for more details
  2515. http://click.egroups.com/1/11231/0/_/451227/_/981565648/
  2516. ---------------------------------------------------------------------_->
  2517. @ENDNODE
  2518. @NODE "Mail_74" " Cybergraphics/LockBitMapTagList() "
  2519. Date: 02-07-01 18:49:58
  2520. Subject: @{b}Cybergraphics/LockBitMapTagList()@{ub}
  2521.  Hello guys,
  2522. just a question about the LockBitMapTagList(), I suppose that this is
  2523. the function used for doing direct gfx-mem rendering, you obtain a
  2524. pointer to the bitmap using the LBMI_BASEADDRESS tag and all the other
  2525. necessary data with the other tags, draw what you want to draw, call
  2526. UnLockBitMap() and there you go. Just a 'prob, calling a
  2527. Lock/UnLockBitmap() couple for every frame is overkill, especially if
  2528. you do that in a context-switch from the PowerPC side. So, is there a
  2529. not-too-much-hackish way of getting a valid pointer to the bitmap and
  2530. using it for all the time you want? The autodoc for the function says
  2531. that the pointer is invalid after you call UnLockBitMap but I suppose
  2532. this could be true for a window (it's bitmap may change size/position)
  2533. but is this true for a screen too? Or there is another method to get a
  2534. valid pointer? Thanx in advance
  2535.  Gabriele
  2536. TiscaliNet, libero accesso ad Internet.
  2537. http://www.tiscalinet.it
  2538. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2539. eGroups is now Yahoo! Groups
  2540. Click here for more details
  2541. http://click.egroups.com/1/11231/0/_/451227/_/981568239/
  2542. ---------------------------------------------------------------------_->
  2543. @ENDNODE
  2544. @NODE "Mail_75" " Re: ObtainBestPen Again "
  2545. Date: 02-07-01 18:59:56
  2546. Subject: @{b}Re: ObtainBestPen Again@{ub}
  2547. Czesc Jack!
  2548. Dnia 06-Feb-01, Jack York napisa
  2549. > I appreciate that Colin.  It was pretty close to what I already had
  2550. > so I must have something obvious missing since your code works.
  2551. Do you have tag SA_SharePens, TRUE in taglist passed to OpenScreenTagList()? I
  2552. attached source of working example of using ObtainBestPenA() which renders
  2553. red gradient LR... I send executable to your private e-mail.
  2554. Regards!
  2555. Can your ImageFX paint like bitmap painters?
  2556. Download: gfx/ifx/REDFiX.lha, ftp.novadesign.com
  2557. Przemyslaw 'SENSEI' Gruchala
  2558. code/gfx2d/gfx3d/webmaster
  2559. Amiga 1200
  2560. Apollo 1240/33 MHz, 18 MB RAM, BTC 33.6 bps
  2561. HDD 3.2 GB, HDD 520 MB, CD x12
  2562. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2563. eGroups is now Yahoo! Groups
  2564. Click here for more details
  2565. http://click.egroups.com/1/11231/0/_/451227/_/981581130/
  2566. ---------------------------------------------------------------------_->
  2567. @ENDNODE
  2568. @NODE "Mail_76" " Re: Cybergraphics/LockBitMapTagList() "
  2569. Date: 02-07-01 20:55:40
  2570. Subject: @{b}Re: Cybergraphics/LockBitMapTagList()@{ub}
  2571. Hello Gabriele
  2572. On 07-Feb-01, Gabriele Svelto wrote:
  2573. > using it for all the time you want? The autodoc for the function says
  2574. > that the pointer is invalid after you call UnLockBitMap but I suppose
  2575. > this could be true for a window (it's bitmap may change size/position)
  2576. > but is this true for a screen too? Or there is another method to get a
  2577. > valid pointer? Thanx in advance
  2578. bitmap pointer obtained via LockBitmap() call will be valid also after
  2579. unlock() call. in most cases ;) if video card has 4 or less mb of memory, it
  2580. may happen that you bitmap will be flushed from video memory, then you will
  2581. write your data on other screens (for example wb). 
  2582. you can call lock/unlock functions every 10 frames for example, ths should
  2583. give you significant speedup, and you will avoid trashing other screens.
  2584. for window rendering, it is also possible to avoid lock/unlock calls, just
  2585. allocate bitmap, draw there something, and then blit it into window.
  2586. Eactly the same as with screen rendering, but you got additional
  2587. BltBitmapRastPort() call.
  2588.  Sebastian
  2589. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2590. eGroups is now Yahoo! Groups
  2591. Click here for more details
  2592. http://click.egroups.com/1/11231/0/_/451227/_/981575796/
  2593. ---------------------------------------------------------------------_->
  2594. @ENDNODE
  2595. @NODE "Mail_77" " Re: Custom screens (was: Re: Can someone look at this code?) "
  2596. Date: 02-07-01 21:24:51
  2597. Subject: @{b}Re: Custom screens (was: Re: Can someone look at this code?)@{ub}
  2598. On 06-Feb-01, Allan Odgaard wrote:
  2599. >>> As long as you don't call SetDefaultPubScreen() then no windows will
  2600. >>> mess up your display. [...]
  2601. >> Untrue. [...]
  2602. > Please elaborate! Are you talking about if the user runs a public screen
  2603. > manager? Cause if he do so then surely it's because he wants to control
  2604. > where windows should appear. I'm simply saying that by default you
  2605. > shouldn't worry about visitor windows simply because you make your
  2606. > screen public (which was the argument toward custom screens), further
  2607. > actions will have to be taken by the user for this to happen.
  2608. I'm just saying if there are technical reasons to disallow windows from other
  2609. programs popping up and trampling all over what the owning program is doing
  2610. then I don't think public screen access should be offered.
  2611. >>> [...] Reminds me a little of the demo-days, where
  2612. >>> people went through a lot of trouble to make sure that graphics and
  2613. >>> modules couldn't be ripped from the demos.
  2614. >> I believe you mean they tried to make the demo do a whole lot very
  2615. >> quickly with a small size. Well, efficiency has nothing to do with
  2616. >> scattering .iff .8svx and .mod files all over the place. And when you
  2617. >> freeze/kill the OS the odds of any filesystems still being alive are
  2618. >> dubious.
  2619. > No this is not what I ment. Some had special code to detect Action
  2620. > Replay etc.  Besides, it was just a side node.
  2621. Odds are that is to protect their code so other demo doers can't get their
  2622. code.
  2623. I wouldn't say thats always the case, but that seems like a good reason to me,
  2624. given how competitive demo groups seemed to be.
  2625. >>> No-one considered that users wanted to hear the modules in trackers
  2626. >>> running in the backgroumd, use the graphics for backgrounds pictures,
  2627. >>> or print them in magazines when reviewing demos etc.
  2628. >> A reviewer for a publication of a decent size would not find getting
  2629. >> screenshots difficult.
  2630. > I happen to know that it *was* a real problem for some! As I understood
  2631. > it they photographed the monitor for the best result, thus needed a way
  2632. > to freeze the demo or simply make a screen dump for static display.
  2633. I see a few options here. Hack in something to interupt the CPU clock, then
  2634. digitize slow scan the output of a decent encoder. (I dunno about feasability
  2635. though) Or actually configure the camera shutter to go at the display refresh
  2636. speed (not good for PAL I suspect). A more modern way could be to run the demo
  2637. on an emulator.
  2638. >>> Why is there some strange idea that the programmer knows what the
  2639. >>> user want,
  2640. >> Why is there some strange idea that all users know what the programmer
  2641. >> wants? :-)
  2642. > That idea has certainly escaped my attention. But based on your reply
  2643. > I'm assuming that you're just a smart ass...
  2644. Yeah, your post seemed a bit one-way though.
  2645. Nevermind the programmer often does end up being a user and hence does know
  2646. what a user wants. :-)
  2647. >>> and should try to limit the user in a way that's not just avoiding
  2648. >>> mistakes, but gives the super user a lot of trouble doing the things
  2649. >>> he'd like to do?
  2650. >> Because making the computer do its thing is more important. A 68000 at
  2651. >> 7.15 MHz doesn't offer the headroom a dual Athlon 1.2GHz with a
  2652. >> GeForce chip does.
  2653. > What has this to do with anything? You may argue that a custom screens
  2654. > allows you to bypass some system functions and thus do more lowlevel
  2655. > rendering, but I've already touched this subject in another letter.
  2656. > Besides, I doubt this is really the case. If it is then you're probably
  2657. > just a lame programmer!
  2658. Well, I've seen some stuff from lame programmers on the aforementioned
  2659. outdated systems that I have yet to see anywhere else.
  2660. I've also seen some lame stuff. But the cool stuff is cool.
  2661. And yes, I'm a horrible programmer and would be surprised if I could bang out
  2662. a hello world without a little reference. :-)
  2663. Thats why I've been semi-lurking here. Shame more working sourcecode isn't
  2664. sent here...
  2665.      __ /\          /\__   /\   :      xav2@xav.to
  2666.  __ //// /\  /\/\  / / _\ / /\  |   http://www.xav.to
  2667.  \\\/// __ \/    \/ /   \/ __ \ | A-2000 39M 030/882/50
  2668.   \\/ \/  \/\/\/\/\/ \__/\/  \/ :   IT ALL FREEZES!!!
  2669. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2670. eGroups is now Yahoo! Groups
  2671. Click here for more details
  2672. http://click.egroups.com/1/11231/0/_/451227/_/981577609/
  2673. ---------------------------------------------------------------------_->
  2674. @ENDNODE
  2675. @NODE "Mail_78" " Re: Cybergraphics/LockBitMapTagList() "
  2676. Date: 02-07-01 21:31:42
  2677. Subject: @{b}Re: Cybergraphics/LockBitMapTagList()@{ub}
  2678.  Hi Sebastian,
  2679. > bitmap pointer obtained via LockBitmap() call will be valid also after
  2680. > unlock() call. in most cases ;) if video card has 4 or less mb of
  2681. > memory, it may happen that you bitmap will be flushed from video
  2682. > memory, then you will write your data on other screens (for example
  2683. > wb).
  2684. I hadn't thought of that, this will happen whenever the user swaps the
  2685. screen, even if I check between the frames if the screen has been
  2686. swapped I'll never be sure of what happens during a frame...
  2687. > you can call lock/unlock functions every 10 frames for example, ths
  2688. > should give you significant speedup, and you will avoid trashing other
  2689. > screens.
  2690. This could help but I would block the multitasking for way too much
  2691. time, BTW do I get IDCMP messages when the BitMap is locked? Doesn't it
  2692. do a Forbid()Permit() couple when you call LockUnlock?
  2693. > for window rendering, it is also possible to avoid lock/unlock calls,
  2694. > just allocate bitmap, draw there something, and then blit it into
  2695. > window. Eactly the same as with screen rendering, but you got
  2696. > additional BltBitmapRastPort() call.
  2697. I didn't thought of blitting... It could be slower but if the gfx board
  2698. has some dedicated hardware it won't be of too much overhead, BTW isn't
  2699. this the only method to do double--buffering in a window? See ya
  2700.  Gabriele
  2701. TiscaliNet, libero accesso ad Internet.
  2702. http://www.tiscalinet.it
  2703. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2704. eGroups is now Yahoo! Groups
  2705. Click here for more details
  2706. http://click.egroups.com/1/11231/0/_/451227/_/981577905/
  2707. ---------------------------------------------------------------------_->
  2708. @ENDNODE
  2709. @NODE "Mail_79" " Re: Cybergraphics/LockBitMapTagList() "
  2710. Date: 02-07-01 22:17:44
  2711. Subject: @{b}Re: Cybergraphics/LockBitMapTagList()@{ub}
  2712. Hello Gabriele
  2713. On 07-Feb-01, Gabriele Svelto wrote:
  2714. >> you can call lock/unlock functions every 10 frames for example, ths
  2715. >> should give you significant speedup, and you will avoid trashing other
  2716. >> screens.
  2717. > This could help but I would block the multitasking for way too much
  2718. but you do not keep your bitmap locked for such long time:
  2719. framecnt = 10;
  2720. frameloop:
  2721.     if(framecnt == 10)
  2722.     {
  2723.         lockbitmap();
  2724.         getbitmapaddres;
  2725.         unlockbitmap();
  2726.         framecnt = 0;
  2727.     }
  2728.     drawsomethng to bitmapaddress;
  2729.     framecnt++;
  2730. We were using similiar approach in our ppc movie players, this works fine.
  2731. > I didn't thought of blitting... It could be slower but if the gfx board
  2732. there is no other way. well, you could write to window->rastport->bitmap,
  2733. but this is wb screen bitmap IIRC, and this will require lot of additional
  2734. work to make sure you drawing in correct place.
  2735. > this the only method to do double--buffering in a window? See ya
  2736. dont know about any others ;)
  2737.  Sebastian
  2738. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2739. eGroups is now Yahoo! Groups
  2740. Click here for more details
  2741. http://click.egroups.com/1/11231/0/_/451227/_/981580864/
  2742. ---------------------------------------------------------------------_->
  2743. @ENDNODE
  2744. @NODE "Mail_80" " Re: Cybergraphics/LockBitMapTagList() "
  2745. Date: 02-08-01 01:20:11
  2746. Subject: @{b}Re: Cybergraphics/LockBitMapTagList()@{ub}
  2747. Czesc Sebastian!
  2748. Dnia 07-Feb-01, Sebastian Jedruszkiewicz napisa
  2749. > there is no other way. well, you could write to window->rastport->bitmap,
  2750. > but this is wb screen bitmap IIRC, and this will require lot of additional
  2751. > work to make sure you drawing in correct place.
  2752. Not too much if you know what you're doing... It could be even faster than
  2753. BltBitMapRastPort() because you will use BltBitMap() (all this code must be
  2754. in 68k context, 3 AmigaOS functions must be called) for CGFX and direct c2p
  2755. to screen bitmap for OCS/ECS/AGA chipsets... I tested window mode rendering
  2756. in BPPC with AGA and it runs at copyspeed of chip memory all the time ;).
  2757. Regards!
  2758. Can your ImageFX paint like bitmap painters?
  2759. Download: gfx/ifx/REDFiX.lha, ftp.novadesign.com
  2760. Przemyslaw 'SENSEI' Gruchala
  2761. code/gfx2d/gfx3d/webmaster
  2762. Amiga 1200
  2763. Apollo 1240/33 MHz, 18 MB RAM, BTC 33.6 bps
  2764. HDD 3.2 GB, HDD 520 MB, CD x12
  2765. Promocja GE Banku Mieszkaniowego: 0,- zl oplaty aplikacyjnej w Getin.pl
  2766. Kredyt mieszkaniowy do 100% inwestycji, do 20 lat, bez poreczycieli.
  2767. Wystarczy wyslac zgloszenie: http://www.getin.pl/ge/ankieta/ankieta.asp
  2768. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2769. eGroups is now Yahoo! Groups
  2770. Click here for more details
  2771. http://click.egroups.com/1/11231/0/_/451227/_/981667298/
  2772. ---------------------------------------------------------------------_->
  2773. @ENDNODE
  2774. @NODE "Mail_81" " Re: Custom screens (was: Re: Can someone look at this code?) "
  2775. Date: 02-08-01 03:29:34
  2776. Subject: @{b}Re: Custom screens (was: Re: Can someone look at this code?)@{ub}
  2777. On 08-Feb-01, Gregory Roberts II wrote:
  2778. > On Thu, 8 Feb 2001, Colin Wenzel wrote:
  2779. >> On 08-Feb-01, Gunther Nikl wrote:
  2780. >>>  Easy, just use "SA_LikeWorkbench" with V39+ :-)
  2781. >> OK, but what do put in the other fields
  2782. >> If you don't know what size & type the WB 
  2783. >> screen is before hand...
  2784. > Now I know it's been awhile since I've looked at this seriously, but
  2785. > isn't the beauty of TAG lists that you only specify the ones you care
  2786. > about and everyone else gets reasonable defaults? So, all you'd pass
  2787. > is SA_LikeWorkbench, TRUE, TAG_END (or is it TAG_DONE? damn...)
  2788. > Certainly, you can do an OpenWindowTagList without passing anything
  2789. > other than TAG_END. :-) (I *do* remember playing with it when 2.0
  2790. > first came out...)
  2791. > Please correct me if I'm wrong on this (like I said, it has been
  2792. > awhile) > Greg
  2793. Oh ghod this is embarrasing,  I must be getting old or something,
  2794. because for some bizare reason I just simply didn't consider that.. 
  2795. I was actually thinking about an old OpenScreen() when you had 
  2796. to fill out a NewScreen struct to pass a pointer to it,  obvoiusly, 
  2797. in that case you have to initialise it to something.
  2798. I just simply forgot that tags can be optional...
  2799. I'm sorry,  I'd better go & reserve a room at "shady pines"  
  2800. & get my rocking chair oiled up.   
  2801. This is definately not like me.  I'm just having a bad decade.....  (:<
  2802. Regards
  2803. _________________________________________
  2804. Colin Wenzel.  Quensland, Australia.
  2805. EMAIL:  colstv@hotkey.net.au
  2806. URL:       http://www.hotkey.net.au/~colstv/
  2807. AMIGA: 4000T,  68060/50,  150Mb RAM,  
  2808.                OS 3.9,  Spectrum Gfx Card + P96.
  2809. Need an Image Generator For CATV  ??
  2810.        http://connect.to/products
  2811. _________________________________________
  2812. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2813. eGroups is now Yahoo! Groups
  2814. Click here for more details
  2815. http://click.egroups.com/1/11231/0/_/451227/_/981599343/
  2816. ---------------------------------------------------------------------_->
  2817. @ENDNODE
  2818. @NODE "Mail_82" " sas-c "
  2819. Date: 02-08-01 05:42:01
  2820. Subject: @{b}sas-c@{ub}
  2821. Hello.
  2822. Joined the sas-c list a couple of days ago and asked some questions but no
  2823. response. Seems pretty dead  :-(
  2824. I hope you don't mind if I ask them here.   E-mail me off-list if you think
  2825. it is.
  2826. Just installed sas-c V6.50
  2827. A1200 030@33, fpu=68882, 2+64MB ram, OS3.5/BB1, ModePro (is this the
  2828. problem, why? I have 30 odd programs I use every day without any problems
  2829. and a lot more on an infrequent basis), magic menu, toolsdaemon, facts.
  2830. I have downloaded the other files v6.5/6/7/8 from Steve's site.  But
  2831. first...
  2832. 1)   Is there a FAQ ?
  2833. 2)   Is there a primary sas-c web site ?
  2834. 3)   What does disk#6 do ? It's not required during the install. Looking at
  2835. it, many of the files appear to be smaller than the ones in the present sc
  2836. directory.
  2837. 4)   Page 21 Volume 1 of the SAS/C manual. Using CodeProbe to debug.
  2838. click on debug, shift click on the executable program,   --  black screen,
  2839. reboot.
  2840. Any hints ?
  2841. Regards...Martin
  2842. A man gets what he wants by acting smart; a woman, by playing dumb.
  2843. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2844. eGroups is now Yahoo! Groups
  2845. Click here for more details
  2846. http://click.egroups.com/1/11231/0/_/451227/_/981607349/
  2847. ---------------------------------------------------------------------_->
  2848. @ENDNODE
  2849. @NODE "Mail_83" " Datatypes Pic "
  2850. Date: 02-08-01 07:55:42
  2851. Subject: @{b}Datatypes Pic@{ub}
  2852. Can i load any file to memory and remap this block with the datatypes?
  2853. I use the Sourcetype DTST_MEMORY! But this not work.
  2854. thanks...
  2855. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2856. eGroups is now Yahoo! Groups
  2857. Click here for more details
  2858. http://click.egroups.com/1/11231/0/_/451227/_/981619025/
  2859. ---------------------------------------------------------------------_->
  2860. @ENDNODE
  2861. @NODE "Mail_84" " Re: ObtainBestPen Again "
  2862. Date: 02-08-01 14:38:41
  2863. Subject: @{b}Re: ObtainBestPen Again@{ub}
  2864. Hello Sensei
  2865. On 07-Feb-01, Sensei wrote:
  2866. > Do you have tag SA_SharePens, TRUE in taglist passed to
  2867. > OpenScreenTagList()? I attached source of working example of using
  2868. > ObtainBestPenA() which renders red gradient LR... I send executable to
  2869. > your private e-mail.
  2870. I appeciate that. :)  I replaced the code I was using in my example code
  2871. with yours ( http://my.voyager.net/~jyork ).  I forgot to change the
  2872. comment so don't pay attention to it.  If I use it as you provided, it 
  2873. works, except for the problem mentioned below  And that's great, I don't 
  2874. need to change it.  But I was curious why my original code wouldn't work 
  2875. so I tried some changes.  Here's what I found:
  2876. If I change the array size from 256 to something smaller (128, 64, 32, ...) 
  2877. it fails like before (pressing the right mouse button will cause the color
  2878. of the exit gadget to change).  Also, if I set it to 8, all of the pen
  2879. numbers printed are 1.  In the new example I added a palette gadget.  
  2880. If the right button is clicked, colors 4 & 5 swap colors, even with the 
  2881. array size set to 256.  This doesn't seem to cause any problems but it 
  2882. can't be right, can it?
  2883. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2884. eGroups is now Yahoo! Groups
  2885. Click here for more details
  2886. http://click.egroups.com/1/11231/0/_/451227/_/981643452/
  2887. ---------------------------------------------------------------------_->
  2888. @ENDNODE
  2889. @NODE "Mail_85" " Alloc/Free___ Chip memory fragmentation "
  2890. Date: 02-08-01 16:12:45
  2891. Subject: @{b}Alloc/Free___ Chip memory fragmentation@{ub}
  2892. hello there once again.
  2893. thank you for your help so far. it is amazingly appreciated.
  2894. My setup:
  2895. 1200 with a blizzard 1230 mk IV + 8 meg fast RAM.
  2896. hard drive, ZIP drive, CD-ROM drive
  2897. using: free StormC from the amiga developers CD 2.1 (i'm a very poor
  2898. student)
  2899. Problematic Task:
  2900.     implementing a double buffered intuition screen
  2901. Problem:
  2902.     When the program executes, I get lots of errors at the end
  2903. saying: "memory block at address: SOMEHEXNUMBER of size 0 not freed".
  2904. and then another usually saying: "two other memory blocks of size <a
  2905. couple of hundred> bytes not freed". So, I use the flush resources
  2906. command get rid of the program completely. Then what happens is that i
  2907. find all of my Chip RAM is fragmented into about 40k chunks and my whole
  2908. computer goes pear-shaped. When i do an Avail in a command prompt after
  2909. I have run the program, i still have quite a few meg of fast RAM, but
  2910. the largest Chip chunk is apparantly about 30/40k.
  2911. What I have done so far:
  2912.     I recorded the addresses of all of the memory allocations I make
  2913. and have found that the addresses are the last n-1 (where n is the
  2914. number of bitplanes) bitplanes of the bitmap that i don't initialise the
  2915. screen with. I am using the custom bitmap; i am sure i'm doing
  2916. everything by the book. If you would like a copy of my code, then i will
  2917. be able to send it later this evening [GMT], when i have access to the
  2918. uni's ZIP drives.
  2919.     So, I traced the problem to the Alloc and Free Raster functions
  2920. and replaced them with AllocVec and FreeVec, calculating the size like
  2921. this:
  2922. (NULL==(Bitmap[i]->Planes[j]=AllocVec(WIDTH/8*HEIGHT,MEMF_CHIP|MEMF_CLEAR)))
  2923.     throw("Couldn't allocate enough memory.");
  2924.     I have, of course, got a catch routine at the end and already.
  2925. When I replaced it, the first time i got no errors saying i hadn't
  2926. deallocated all that stuff. But my chip ram was still completely
  2927. fragmented afterwards. I have included my code, but i have a feeling
  2928. that it's not that. Perhaps something to do with the way i have my
  2929. system set up. i will shortly be getting more RAM, which will probably
  2930. help and a bigger hard drive. 120 Meg just doesn't cut it.
  2931. thank you very much
  2932. kindest regards
  2933. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2934. eGroups is now Yahoo! Groups
  2935. Click here for more details
  2936. http://click.egroups.com/1/11231/0/_/451227/_/981645171/
  2937. ---------------------------------------------------------------------_->
  2938. @ENDNODE
  2939. @NODE "Mail_86" " Re: Datatypes Pic "
  2940. Date: 02-08-01 19:32:05
  2941. Subject: @{b}Re: Datatypes Pic@{ub}
  2942. Hello Ren
  2943. > Can i load any file to memory and remap this block with the datatypes?
  2944. > I use the Sourcetype DTST_MEMORY! But this not work.
  2945. You cannot use datatypes for general bitmap remapping :-(
  2946. Kind regards Allan
  2947. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2948. eGroups is now Yahoo! Groups
  2949. Click here for more details
  2950. http://click.egroups.com/1/11231/0/_/451227/_/981664018/
  2951. ---------------------------------------------------------------------_->
  2952. @ENDNODE
  2953. @NODE "Mail_87" " Starting from WB & CLI "
  2954. Date: 02-08-01 19:32:43
  2955. Subject: @{b}Starting from WB & CLI@{ub}
  2956. Hello,
  2957. I was wondering if someone has some dox on how to create C programs that can
  2958. be launched from WB, and from CLI.
  2959. I need to enable my (cli-based) app to be launched with an icon and to have
  2960. it open a CLI or CON window itself.
  2961. IIRC it was with using _main(), but i'm not sure :(
  2962. Kind regards
  2963. Amon_Re
  2964. Christophe Ochal
  2965. Hoge Buizemont 168
  2966. 9500 Geraardsbergen, Belgium
  2967. Fax: 0032 (0)2/256 42 58
  2968. Mobile: 0032 (0)479/46 45 74
  2969. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2970. eGroups is now Yahoo! Groups
  2971. Click here for more details
  2972. http://click.egroups.com/1/11231/0/_/451227/_/981661637/
  2973. ---------------------------------------------------------------------_->
  2974. @ENDNODE
  2975. @NODE "Mail_88" " Re: hypercom3+ +parallel port "
  2976. Date: 02-08-01 20:16:41
  2977. Subject: @{b}Re: hypercom3+ +parallel port@{ub}
  2978. Recieved your message about [amiga-c] hypercom3+ +parallel port, on 26-Jan-01
  2979. > does anyone know how to control individual lines of the parallel
  2980. > port on hypercom3+ interface?
  2981. > i'm making a driver for the Quickcam VC from logitech and i want to
  2982. > emulate the ECP parallel mode.
  2983. Might be an idea to check the website: http://www.vmc.de/ger_vmc_main.html
  2984. for clues.  Or email the author of the driver software and ask him
  2985. direct.  IIRC he's on IRC most nights as wwwVMCde, IRCnet #amiga.
  2986. Regards,
  2987. M!ke C
  2988. .--------------------------------- ---- -    -- --------.
  2989. | AMiGA 1200EZT 060/PPC@240Mhz,82Mb RAM __/\__          |
  2990. | 3 HDD,DD FD,5 CD-ROMS,CDrW,ZiP250     \ o0 / bUDDa^SDS|
  2991. | SCSI+IDE, 56kModem, BVGfX, 19"VDU     /_'-_\          |
  2992. `------------------------------- --- -    \/   -- ------'
  2993.   http://www.BuddasWurld.com              ICQ: 29173597
  2994. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  2995. eGroups is now Yahoo! Groups
  2996. Click here for more details
  2997. http://click.egroups.com/1/11231/0/_/451227/_/981663500/
  2998. ---------------------------------------------------------------------_->
  2999. @ENDNODE
  3000. @NODE "Mail_89" " Re: Starting from WB & CLI "
  3001. Date: 02-08-01 21:28:42
  3002. Subject: @{b}Re: Starting from WB & CLI@{ub}
  3003. Hi Christophe
  3004. > I was wondering if someone has some dox on how to create C programs that
  3005. > can be launched from WB, and from CLI.
  3006. > I need to enable my (cli-based) app to be launched with an icon and to
  3007. > have it open a CLI or CON window itself.
  3008. There is a function called wbmain() which some compilers support, and this
  3009. is the entry point for when your program is started from the WB. If you
  3010. don't need to do anything special when the program is run from WB, just call
  3011. main() from within wbmain().
  3012. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3013. eGroups is now Yahoo! Groups
  3014. Click here for more details
  3015. http://click.egroups.com/1/11231/0/_/451227/_/981664128/
  3016. ---------------------------------------------------------------------_->
  3017. @ENDNODE
  3018. @NODE "Mail_90" " Re: Datatypes Pic "
  3019. Date: 02-08-01 23:09:27
  3020. Subject: @{b}Re: Datatypes Pic@{ub}
  3021. Hi Allan!
  3022. But what is with DTST_MEMORY,DTA_SourceSize,DTA_SourceAddress?
  3023. I can't remap an memory block which have the picture datas?
  3024. I mean i load any picture to the memory and create a new dtobject.
  3025. thanks...
  3026. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3027. eGroups is now Yahoo! Groups
  3028. Click here for more details
  3029. http://click.egroups.com/1/11231/0/_/451227/_/981673901/
  3030. ---------------------------------------------------------------------_->
  3031. @ENDNODE
  3032. @NODE "Mail_91" " Re: Re: ObtainBestPen Again "
  3033. Date: 02-08-01 23:44:00
  3034. Subject: @{b}Re: Re: ObtainBestPen Again@{ub}
  3035. Czesc Jack!
  3036. Dnia 08-Lut-01, Jack York napisa
  3037. >I appeciate that. :)  I replaced the code I was using in my example code
  3038. >with yours ( http://my.voyager.net/~jyork ).  I forgot to change the
  3039. >comment so don't pay attention to it. 
  3040. Please send it to my private E-Mail....
  3041. >[...]
  3042. >If I change the array size from 256 to something smaller (128, 64, 32, ...) 
  3043. >it fails like before (pressing the right mouse button will cause the color
  3044. >of the exit gadget to change). 
  3045. Do you have WA_RMBTrap, TRUE in window tag list (of course if you aren't using
  3046. menus)?
  3047. > Also, if I set it to 8, all of the pen
  3048. >numbers printed are 1.  In the new example I added a palette gadget.  
  3049. >If the right button is clicked, colors 4 & 5 swap colors, even with the 
  3050. >array size set to 256.  This doesn't seem to cause any problems but it 
  3051. >can't be right, can it?
  3052. I'll check what is going on when I get source (or part of it)...
  3053. Regards!
  3054. Can your ImageFX paint like bitmap painters?
  3055. Download: gfx/ifx/REDFiX.lha, ftp.novadesign.com
  3056. Przemyslaw 'SENSEI' Gruchala
  3057. code/gfx2d/gfx3d/webmaster
  3058. Amiga 1200
  3059. Apollo 1240/33 MHz, 18 MB RAM, BTC 33.6 bps
  3060. HDD 3.2 GB, HDD 520 MB, CD x12
  3061. Prezentacja oferty i sprzedaz produktow Twojej firmy w Centrum e-biznesu
  3062.          teraz za niecala zlotowke dziennie!
  3063. KLIKNIJ I ZAMOW http://www.getin.pl/centrum/es_logon.asp
  3064. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3065. eGroups is now Yahoo! Groups
  3066. Click here for more details
  3067. http://click.egroups.com/1/11231/0/_/451227/_/981679861/
  3068. ---------------------------------------------------------------------_->
  3069. @ENDNODE
  3070. @NODE "Mail_92" " Re: Alloc/Free___ Chip memory fragmentation "
  3071. Date: 02-09-01 00:21:50
  3072. Subject: @{b}Re: Alloc/Free___ Chip memory fragmentation@{ub}
  3073. Czesc William!
  3074. Dnia 08-Lut-01, William Robinson napisa
  3075. >hello there once again.
  3076. >thank you for your help so far. it is amazingly appreciated.
  3077. Your's attached source code has a lot of bugs and it signals that you aren't
  3078. using real debug utilities like Enforcer or (better) MuGuardianAngel (probably
  3079. because you haven't MMU in your 030 CPU)... I sugest you to buy 040/060
  3080. accelerator ;) It'll help you programming a lot... BTW, reading memory that
  3081. you freed couple lines above isn't a good idea...
  3082. If your program which allocates and frees bitmaps would support older systems
  3083. like AmigaOS v2.0 you should create and use following functions:
  3084. VOID FreeCustomBitMap( struct BitMap *bitmap )
  3085.    if( bitmap )
  3086.       if( GfxBase->lib_Version >= 39 )
  3087.          FreeBitMap( bitmap );
  3088.       else
  3089.       {
  3090.          ULONG i;
  3091.          for( i = 0; i < bitmap->Depth; i++ )
  3092.             if( bitmap->Planes[ i ] ) FreeRaster( bitmap->Planes[ i ],
  3093. bitmap->BytesPerRow << 3, bitmap->Rows );
  3094.          FreeMem( bitmap, sizeof( struct BitMap ) );
  3095.       }
  3096. struct BitMap *AllocCustomBitMap( ULONG width, ULONG height, ULONG depth,
  3097. ULONG flags, struct BitMap *friendbitmap )
  3098.    struct BitMap *bitmap;
  3099.    /*
  3100.     * If AmigaOS v3.0+ is available use modern bitmap allocating
  3101.     * functions.
  3102.     */
  3103.    if( GfxBase->lib_Version >= 39 )
  3104.       bitmap = AllocBitMap( width, height, depth, flags, friendbitmap );
  3105.    else
  3106.       if( bitmap = AllocMem( sizeof( struct BitMap ), MEMF_ANY | MEMF_CLEAR )
  3107.       {
  3108.          ULONG i;
  3109.          InitBitMap( bitmap, depth, width, height );
  3110.          for( i = 0; i < depth; i++ )
  3111.          {
  3112.             if( bitmap->Planes[ i ] = AllocRaster( bitmap->BytesPerRow << 3,
  3113. bitmap->Rows ) )
  3114.                BltClear( [...] );
  3115.             else
  3116.                break;
  3117.          }
  3118.          if( i != depth )
  3119.          {
  3120.             FreeCustomBitMap( bitmap );
  3121.             bitmap = NULL;
  3122.          }
  3123.       }
  3124.    return( bitmap );
  3125. if not (ie. it requires KS V39+) you *should* use AllocBitMap() and
  3126. FreeBitMap() only!
  3127. BTW double buffering method which you used in attached source code: it very
  3128. old method which was good in AmigaOS v1.x/v2.x... In modern programs (or
  3129. games) you really should use double/multiple buffering provided in AmigaOS
  3130. v3.0+ graphics.library functions or using multiple width/height screen and
  3131. switching visible parts using ScrollVPort() (see autodocs for more
  3132. informations) (it's probably the fastest and the best solution for you, it
  3133. works in RTG systems like CGFX or P96 as well).
  3134. Regards!
  3135. Can your ImageFX paint like bitmap painters?
  3136. Download: gfx/ifx/REDFiX.lha, ftp.novadesign.com
  3137. Przemyslaw 'SENSEI' Gruchala
  3138. code/gfx2d/gfx3d/webmaster
  3139. Amiga 1200
  3140. Apollo 1240/33 MHz, 18 MB RAM, BTC 33.6 bps
  3141. HDD 3.2 GB, HDD 520 MB, CD x12
  3142. Prezentacja oferty i sprzedaz produktow Twojej firmy w Centrum e-biznesu
  3143.          teraz za niecala zlotowke dziennie!
  3144. KLIKNIJ I ZAMOW http://www.getin.pl/centrum/es_logon.asp
  3145. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3146. eGroups is now Yahoo! Groups
  3147. Click here for more details
  3148. http://click.egroups.com/1/11231/0/_/451227/_/981679867/
  3149. ---------------------------------------------------------------------_->
  3150. @ENDNODE
  3151. @NODE "Mail_93" " sas-c "
  3152. Date: 02-09-01 02:27:21
  3153. Subject: @{b}sas-c@{ub}
  3154. Well I posted this about 21 hours ago and I never received it back.
  3155. I wrote to the list owner and he said he received it, but that was well over
  3156. 12 hours ago.
  3157. So I apologise for sending it again, but I'm wondering how many people
  3158. didn't receive it. Especially as there has been zip, nada, nix, nein
  3159. replies...which means...
  3160. it was a stupid question 
  3161. people just didn't receive it.
  3162. Anyway, here it is again, with an small addition.
  3163. -----------
  3164. Hello.
  3165. Joined the sas-c list a couple of days ago and asked some questions but no
  3166. response. Seems pretty dead  :-(
  3167. I hope you don't mind if I ask them here.   E-mail me off-list if you think
  3168. it is off-topic.
  3169. Just installed sas-c V6.50
  3170. A1200 030@33, fpu=68882, 2+64MB ram, OS3.5/BB1, ModePro (is this the
  3171. problem, why? I have 30 odd programs I use every day without any problems
  3172. and a lot more on an infrequent basis), magic menu, toolsdaemon, facts.
  3173. I have downloaded the other files v6.5/6/7/8 from Steve's site.  But
  3174. first...
  3175. 1)   Is there a FAQ ?
  3176. 2)   Is there a primary sas-c web site ?
  3177. 3)   What does disk#6 do ? It's not required during the install. Looking at
  3178. it, many of the files appear to be smaller than the ones in the present sc
  3179. directory.
  3180. 4)   Page 21 Volume 1 of the SAS/C manual. Using CodeProbe to debug.
  3181. click on debug, shift click on the executable program,   --  black screen,
  3182. reboot.
  3183. Any hints ?
  3184. Regards...Martin
  3185. Always begin with a woman by telling her that you don't understand women.
  3186.  You will be able to prove it to her satisfaction more certainly than
  3187. anything else you will ever tell her.
  3188.  == Don Marquis
  3189. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3190. eGroups is now Yahoo! Groups
  3191. Click here for more details
  3192. http://click.egroups.com/1/11231/0/_/451227/_/981682052/
  3193. ---------------------------------------------------------------------_->
  3194. @ENDNODE
  3195. @NODE "Mail_94" " Re: sas-c "
  3196. Date: 02-09-01 02:28:52
  3197. Subject: @{b}Re: sas-c@{ub}
  3198. Hello Martin
  3199. On 08-Feb-01, you wrote:
  3200. > Well I posted this about 21 hours ago and I never received it back.
  3201. Wow !!! it came straight back !!!
  3202. Regards...Martin
  3203. America may be unique in being a country which has leapt from
  3204. barbarism to decadence without touching civilization.
  3205.  == John O'Hara
  3206. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3207. eGroups is now Yahoo! Groups
  3208. Click here for more details
  3209. http://click.egroups.com/1/11231/0/_/451227/_/981682139/
  3210. ---------------------------------------------------------------------_->
  3211. @ENDNODE
  3212. @NODE "Mail_95" " sas-c "
  3213. Date: 02-09-01 12:54:58
  3214. Subject: @{b}sas-c@{ub}
  3215. >3)   What does disk#6 do ? It's not required during the install. Looking at it, many of the files appear to be smaller than the ones in the present sc directory.
  3216. Disk 6 is used as a template for when you are installing to floppy disk, so presumeably, you installed it to HD.
  3217. The readmes with each installation are well worth a look.
  3218. Tak Tang
  3219. Experience is directly proportional to the value of equipment destroyed.
  3220. **********************************************************************
  3221. This email and any files transmitted with it are confidential and
  3222. intended solely for the use of the individual or entity to whom they
  3223. are addressed. If you have received this email in error please notify
  3224. the system manager.
  3225. This footnote also confirms that this email message has been swept by
  3226. MIMEsweeper for the presence of computer viruses.
  3227. **********************************************************************
  3228. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3229. eGroups is now Yahoo! Groups
  3230. Click here for more details
  3231. http://click.egroups.com/1/11231/0/_/451227/_/981720654/
  3232. ---------------------------------------------------------------------_->
  3233. @ENDNODE
  3234. @NODE "Mail_96" " Re: Alloc/Free___ Chip memory fragmentation "
  3235. Date: 02-09-01 14:35:52
  3236. Subject: @{b}Re: Alloc/Free___ Chip memory fragmentation@{ub}
  3237. On Fri, 9 Feb 2001, Sensei wrote:
  3238. > Your's attached source code has a lot of bugs and it signals that you aren't
  3239. > using real debug utilities like Enforcer or (better) MuGuardianAngel (probably
  3240. > because you haven't MMU in your 030 CPU)... I sugest you to buy 040/060
  3241. > accelerator ;) It'll help you programming a lot... BTW, reading memory that
  3242. > you freed couple lines above isn't a good idea...
  3243.     If I could afford a better accellerator, beleive me, i would get
  3244. one. i'm just trying to grab people's SIMM chuckouts at the moment so
  3245. i've got a bit more RAM and also and an internal harddisk. I think i do
  3246. have an MMU. It's the Blizzard 1230 mk. IV which i'm pretty sure has
  3247. one, although i've never tried any virtual memory stuff really.
  3248.     I looked at enforcer recently, but i haven't gotten around to
  3249. trying and sorting it all out. I thought it looked a bit much for what i
  3250. was trying to solve.
  3251. > BTW double buffering method which you used in attached source code: it very
  3252. > old method which was good in AmigaOS v1.x/v2.x... In modern programs (or
  3253. > games) you really should use double/multiple buffering provided in AmigaOS
  3254. > v3.0+ graphics.library functions or using multiple width/height screen and
  3255. > switching visible parts using ScrollVPort() (see autodocs for more
  3256. > informations) (it's probably the fastest and the best solution for you, it
  3257. > works in RTG systems like CGFX or P96 as well).
  3258. > Regards!
  3259.     thanks you very much for all the advice. i'm not really too
  3260. bothered about backwards compatibility. i just want to get it working
  3261. first :o). I've been programming in some form since i was about 8 on my
  3262. spectrum's BASIC. i have about 10/20 half finished programs which i've
  3263. given up on at some point in the last ten years, and have only recently
  3264. moved into C++ from Blitz BASIC and Java at uni. I never have any
  3265. problems with my uni work, but trying to get something i've written into
  3266. the public domain has always proved a problem due to frustration at
  3267. unfindable bugs. I'm currently attempting to transfer a Graphic
  3268. Adventure engine that i programmed in Blitz Basic last summer, into C++.
  3269. As well as the fact that i now much prefer the C/C++/Java
  3270. object-oriented style, i want to then write a graphics interface for a
  3271. PC (at some point).
  3272.     i will have a look at the newer graphics library. the only thing
  3273. i've really been learning from is the old RKMs on the Amiga Developers
  3274. CD 2.1, so thank you very much for your time :o).
  3275.     What tools do you regularly use for debugging? I've heard of
  3276. enforcer many times, but whenever i read the overview of it, i don't
  3277. bother installing it. It says that it just checks for illegal memory
  3278. allocations. When I run the program from within StormC, i get a load of
  3279. error messages there about that anyway.
  3280. thanks ever so much
  3281. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3282. eGroups is now Yahoo! Groups
  3283. Click here for more details
  3284. http://click.egroups.com/1/11231/0/_/451227/_/981725761/
  3285. ---------------------------------------------------------------------_->
  3286. @ENDNODE
  3287. @NODE "Mail_97" " Re: Alloc/Free___ Chip memory fragmentation "
  3288. Date: 02-09-01 15:45:06
  3289. Subject: @{b}Re: Alloc/Free___ Chip memory fragmentation@{ub}
  3290.  Hi William,
  3291. > I think i do have an MMU. It's the Blizzard 1230 mk. IV which i'm pretty sure has
  3292. > one, although i've never tried any virtual memory stuff really.
  3293. Indeed you have one since the board is packed with a 50MHz 68030
  3294. (68EC020, 68EC030, etc... are the ones without the MMU).
  3295. >     i will have a look at the newer graphics library. the only thing
  3296. > i've really been learning from is the old RKMs on the Amiga Developers
  3297. > CD 2.1, so thank you very much for your time :o).
  3298. The RKMs are a very good starting pont even if their a little old but
  3299. try always to look at the autodocs as a complement to the RKMs, some
  3300. functions have changed and new functions have been introduced since
  3301. then.
  3302. >     What tools do you regularly use for debugging? I've heard of enforcer
  3303. > many times, but whenever i read the overview of it, i don't bother
  3304. > installing it. It says that it just checks for illegal memory
  3305. > allocations. When I run the program from within StormC, i get a load
  3306. > of error messages there about that anyway.
  3307. Better get MuForce instead of enforcer (from MMULib.lha on Aminet), it's
  3308. based on the latest Enforcer sources plus it has more features and works
  3309. with mmu.library which is a really cool thing. Actually MuForce (or
  3310. Enforcer) deals only with bad memory accesses (reading/writing to memory
  3311. you don't have allocated), since 99% of the bugs are caused by illegal
  3312. memory access you can see how much this can be useful, together with it
  3313. you can use MuGuardianAngel which checks for memory allocations, garbage
  3314. (allocations not freed), stack overflows, etc... See ya
  3315.  Gabriele
  3316. TiscaliNet, libero accesso ad Internet.
  3317. http://www.tiscalinet.it
  3318. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3319. eGroups is now Yahoo! Groups
  3320. Click here for more details
  3321. http://click.egroups.com/1/11231/0/_/451227/_/981729908/
  3322. ---------------------------------------------------------------------_->
  3323. @ENDNODE
  3324. @NODE "Mail_98" " Re: Alloc/Free___ Chip memory fragmentation "
  3325. Date: 02-09-01 15:45:13
  3326. Subject: @{b}Re: Alloc/Free___ Chip memory fragmentation@{ub}
  3327. ----- Original Message -----
  3328. From: "William Robinson" <tkuk7@central.susx.ac.uk>
  3329. To: "William Robinson" <amiga-c@yahoogroups.com>
  3330. Sent: Friday, February 09, 2001 6:36 AM
  3331. Subject: Re: [amiga-c] Alloc/Free___ Chip memory fragmentation
  3332. > On Fri, 9 Feb 2001, Sensei wrote:
  3333. > I looked at enforcer recently, but i haven't gotten around to
  3334. > trying and sorting it all out. I thought it looked a bit much for what i
  3335. > was trying to solve.
  3336. If you have an MMU then run enforcer... Run Mungwall too... Put them early
  3337. in your startup-sequence and run both all the time... They'll save you a
  3338. whole lot of trouble.
  3339. > What tools do you regularly use for debugging? I've heard of
  3340. > enforcer many times, but whenever i read the overview of it, i don't
  3341. > bother installing it. It says that it just checks for illegal memory
  3342. > allocations
  3343. It does a wee bit more than that. :)
  3344.   Regards Rod
  3345. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3346. eGroups is now Yahoo! Groups
  3347. Click here for more details
  3348. http://click.egroups.com/1/11231/0/_/451227/_/981729923/
  3349. ---------------------------------------------------------------------_->
  3350. @ENDNODE
  3351. @NODE "Mail_99" " Re: Re: Alloc/Free___ Chip memory fragmentation "
  3352. Date: 02-09-01 15:47:28
  3353. Subject: @{b}Re: Re: Alloc/Free___ Chip memory fragmentation@{ub}
  3354. ----- Original Message -----
  3355. From: "Gabriele Svelto" <jlpicard@tiscalinet.it>
  3356. To: <amiga-c@yahoogroups.com>
  3357. Sent: Friday, February 09, 2001 7:45 AM
  3358. Subject: [amiga-c] Re: Alloc/Free___ Chip memory fragmentation
  3359. > Hi William,
  3360. > > I think i do have an MMU. It's the Blizzard 1230 mk. IV which i'm pretty
  3361. sure has
  3362. > > one, although i've never tried any virtual memory stuff really.
  3363. > Indeed you have one since the board is packed with a 50MHz 68030
  3364. > (68EC020, 68EC030, etc... are the ones without the MMU).
  3365. > >     i will have a look at the newer graphics library. the only thing
  3366. > > i've really been learning from is the old RKMs on the Amiga Developers
  3367. > > CD 2.1, so thank you very much for your time :o).
  3368. > The RKMs are a very good starting pont even if their a little old but
  3369. > try always to look at the autodocs as a complement to the RKMs, some
  3370. > functions have changed and new functions have been introduced since
  3371. > then.
  3372. > >     What tools do you regularly use for debugging? I've heard of
  3373. enforcer
  3374. > > many times, but whenever i read the overview of it, i don't bother
  3375. > > installing it. It says that it just checks for illegal memory
  3376. > > allocations. When I run the program from within StormC, i get a load
  3377. > > of error messages there about that anyway.
  3378. > Better get MuForce instead of enforcer (from MMULib.lha on Aminet), it's
  3379. > based on the latest Enforcer sources plus it has more features and works
  3380. > with mmu.library which is a really cool thing.
  3381. Plus it's dead slow on an 040 and it'd be even slower on an 030...
  3382.   Regards Rod
  3383. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3384. eGroups is now Yahoo! Groups
  3385. Click here for more details
  3386. http://click.egroups.com/1/11231/0/_/451227/_/981730060/
  3387. ---------------------------------------------------------------------_->
  3388. @ENDNODE
  3389. @NODE "Mail_100" " Re: Re: Alloc/Free___ Chip memory fragmentation "
  3390. Date: 02-09-01 17:57:04
  3391. Subject: @{b}Re: Re: Alloc/Free___ Chip memory fragmentation@{ub}
  3392.  Hi Rod,
  3393. > > Better get MuForce instead of enforcer (from MMULib.lha on Aminet), it's
  3394. > > based on the latest Enforcer sources plus it has more features and works
  3395. > > with mmu.library which is a really cool thing.
  3396. > Plus it's dead slow on an 040 and it'd be even slower on an 030...
  3397. Curious, probably you have not configured it properly, I
  3398. run it all the time and it gives me 0 overhead if there
  3399. aren't any hits and when there are one just the overhead
  3400. of writing to the serial port. It gets slow as hell when
  3401. mmu.library is badly configured but this happens only if
  3402. you mess with the standard config file. See ya
  3403.  Gabriele
  3404. TiscaliNet, libero accesso ad Internet.
  3405. http://www.tiscalinet.it
  3406. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3407. eGroups is now Yahoo! Groups
  3408. Click here for more details
  3409. http://click.egroups.com/1/11231/0/_/451227/_/981737830/
  3410. ---------------------------------------------------------------------_->
  3411. @ENDNODE
  3412. @NODE "Mail_101" " Re: sas-c "
  3413. Date: 02-09-01 18:28:36
  3414. Subject: @{b}Re: sas-c@{ub}
  3415. Hello Tak
  3416. On 09-Feb-01, you wrote:
  3417. >> 3) What does disk#6 do ? It's not required during the install. Looking at
  3418. >> it, many of the files appear to be smaller than the ones in the present
  3419. >> sc directory.
  3420. > Disk 6 is used as a template for when you are installing to floppy disk,
  3421. > so presumeably, you installed it to HD.
  3422. > The readmes with each installation are well worth a look.
  3423. I did read the readme. In fact I printed it out. Still don't see anything
  3424. about disk #6.
  3425. Well never mind. I'll just install the upgrades.
  3426. > Tak Tang
  3427. Regards...Martin
  3428. Adam's Rib: The original bone of contention.
  3429. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3430. eGroups is now Yahoo! Groups
  3431. Click here for more details
  3432. http://click.egroups.com/1/11231/0/_/451227/_/981739724/
  3433. ---------------------------------------------------------------------_->
  3434. @ENDNODE
  3435. @NODE "Mail_102" " Re: Re: Alloc/Free___ Chip memory fragmentation "
  3436. Date: 02-09-01 19:08:00
  3437. Subject: @{b}Re: Re: Alloc/Free___ Chip memory fragmentation@{ub}
  3438. ----- Original Message -----
  3439. From: "Gabriele Svelto" <jlpicard@tiscalinet.it>
  3440. To: <amiga-c@yahoogroups.com>
  3441. Sent: Friday, February 09, 2001 9:57 AM
  3442. Subject: Re: [amiga-c] Re: Alloc/Free___ Chip memory fragmentation
  3443. > Hi Rod,
  3444. > > > Better get MuForce instead of enforcer (from MMULib.lha on Aminet),
  3445. > > > based on the latest Enforcer sources plus it has more features and
  3446. works
  3447. > > > with mmu.library which is a really cool thing.
  3448. > > Plus it's dead slow on an 040 and it'd be even slower on an 030...
  3449. > Curious, probably you have not configured it properly, I
  3450. > run it all the time and it gives me 0 overhead if there
  3451. > aren't any hits and when there are one just the overhead
  3452. > of writing to the serial port. It gets slow as hell when
  3453. > mmu.library is badly configured but this happens only if
  3454. > you mess with the standard config file. See ya
  3455. I tried MuForce once, both with standard options on and with minimal options
  3456. on... Never messed with mmu.library options at all. It slowed the system
  3457. down so much I was reminded of working with a plain 68000. That was when
  3458. there were no hits, it got even slower if there were hits. Similar results
  3459. with GaurdianAngel. However, that was a while back, maybe they and/or
  3460. mmu.library have improved since then. Regardless, I'll stick with enforcer
  3461. and Mungwall. They've allways worked well for me.
  3462.   Regards Rod
  3463. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3464. eGroups is now Yahoo! Groups
  3465. Click here for more details
  3466. http://click.egroups.com/1/11231/0/_/451227/_/981742097/
  3467. ---------------------------------------------------------------------_->
  3468. @ENDNODE
  3469. @NODE "Mail_103" " Re: Alloc/Free___ Chip memory fragmentation "
  3470. Date: 02-09-01 21:06:31
  3471. Subject: @{b}Re: Alloc/Free___ Chip memory fragmentation@{ub}
  3472. Czesc William!
  3473. Dnia 09-Lut-01, William Robinson napisa
  3474. >If I could afford a better accellerator, beleive me, i would get
  3475. >one. i'm just trying to grab people's SIMM chuckouts at the moment so
  3476. >i've got a bit more RAM and also and an internal harddisk. I think i do
  3477. >have an MMU. It's the Blizzard 1230 mk. IV which i'm pretty sure has
  3478. >one, although i've never tried any virtual memory stuff really.
  3479. >I looked at enforcer recently, but i haven't gotten around to
  3480. >trying and sorting it all out. I thought it looked a bit much for what i
  3481. >was trying to solve.
  3482. If you have MMU that's good. After I'll go home I'll send you scripts with
  3483. optimal options for debug utilities which I use everyday...
  3484. >problems with my uni work, but trying to get something i've written into
  3485. >the public domain has always proved a problem due to frustration at
  3486. >unfindable bugs.
  3487. Maybe you're trying to create too big project in AmigaOS at once? If something
  3488. doesn't work well in big project try to write small test program which will do
  3489. specified work... You will be able to find bugs faster. And if problems are
  3490. too serious, you can post info about them here...
  3491. > I'm currently attempting to transfer a Graphic
  3492. >Adventure engine that i programmed in Blitz Basic last summer, into C++.
  3493. >As well as the fact that i now much prefer the C/C++/Java
  3494. >object-oriented style, i want to then write a graphics interface for a
  3495. >PC (at some point).
  3496. Graphics User Interface? Like MUI? ;)
  3497. >i will have a look at the newer graphics library. the only thing
  3498. >i've really been learning from is the old RKMs on the Amiga Developers
  3499. >CD 2.1, so thank you very much for your time :o).
  3500. Amiga Developer CD v2.1 is the latest developer kit for Amiga programmer as
  3501. far as I know. You can find anything what you want to programme AmigaOS
  3502. applications.
  3503. >What tools do you regularly use for debugging? I've heard of
  3504. >enforcer many times, but whenever i read the overview of it, i don't
  3505. >bother installing it. It says that it just checks for illegal memory
  3506. >allocations.
  3507. Enforcer/MuForce checks for illegal memory access not allocations, for example
  3508. if you use uninitialized/not valid address variable:
  3509. UBYTE *data = NULL;
  3510. // forgot to allocate data here.
  3511. *data = 0;
  3512. Mungwall/MuGuardianAngel patches memory allocation functions of exec.library
  3513. and install walls with specified size before and after allocated memory:
  3514. UBYTE *data;
  3515. if( data = AllocMem( 100, MEMF_ANY ) )
  3516.    data[ -1 ] -= 1;
  3517.    data[ 101 ] += 1;
  3518. Modyfing memory that isn't allocaed by your program is a serious problem when
  3519. you're not using string functions with constant size...
  3520. UBYTE string[ 5 ]; (String could by dynamically allocated here, size 5 is only
  3521. for example ;)
  3522. strncpy( string, "hello world!\n", sizeof( string ) ); // memory will not be
  3523. corrupted.
  3524. strcpy( string, "hello world!\n" ); // memory will be corrupted.
  3525. sprintf( string, "hello world %ld!\n", i ); // memory will be corrupted.
  3526. Similar example as your's previous source code:
  3527. if( bitmap ) { [...] FreeVec( bitmap ); }
  3528. printf( "%ld\n", bitmap->Planes[ 0 ] ); // memory is freed, bitmap pointer
  3529. isn't valid any more.
  3530. > When I run the program from within StormC, i get a load of
  3531. >error messages there about that anyway.
  3532. Run debug utilities and you will see much more of them ;).
  3533. Regards!
  3534. Can your ImageFX paint like bitmap painters?
  3535. Download: gfx/ifx/REDFiX.lha, ftp.novadesign.com
  3536. Przemyslaw 'SENSEI' Gruchala
  3537. code/gfx2d/gfx3d/webmaster
  3538. Amiga 1200
  3539. Apollo 1240/33 MHz, 18 MB RAM, BTC 33.6 bps
  3540. HDD 3.2 GB, HDD 520 MB, CD x12
  3541.             Podnies kwalifikacje swoich pracownikow !
  3542. Profesjonalne szkolenia, konsultacje, doradztwo. Najlepsi specjalisci.
  3543.         Kliknij: Akademia Skutecznego Biznesu: www.asb.com.pl !
  3544. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3545. eGroups is now Yahoo! Groups
  3546. Click here for more details
  3547. http://click.egroups.com/1/11231/0/_/451227/_/981752542/
  3548. ---------------------------------------------------------------------_->
  3549. @ENDNODE
  3550. @NODE "Mail_104" " Re: Datatypes Pic "
  3551. Date: 02-09-01 21:41:41
  3552. Subject: @{b}Re: Datatypes Pic@{ub}
  3553.  wrote:
  3554. > Can i load any file to memory and remap this block with the 
  3555. > datatypes?
  3556. > I use the Sourcetype DTST_MEMORY! But this not work.
  3557. Best way is to let datatypes load the file, and specify the source 
  3558. type as file. The memory source type only works with datatypes sub-
  3559. classes that support it and many do not yet, this also requires you 
  3560. to have the whole file in memory, eg a jpeg, and not have decoded it.
  3561. If you use your own routines to load the picture(in your own created 
  3562. format), then you must create a newdtobject of GID_PICTURE, and input 
  3563. the bitmap and palette into this, then you will be able to remap via 
  3564. datatypes. If you look at example picture datatype sub classes you 
  3565. should be able to figure out how to do this.
  3566. Shinda
  3567. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3568. eGroups is now Yahoo! Groups
  3569. Click here for more details
  3570. http://click.egroups.com/1/11231/0/_/451227/_/981751310/
  3571. ---------------------------------------------------------------------_->
  3572. @ENDNODE
  3573. @NODE "Mail_105" " Re: Alloc/Free___ Chip memory fragmentation "
  3574. Date: 02-09-01 23:57:18
  3575. Subject: @{b}Re: Alloc/Free___ Chip memory fragmentation@{ub}
  3576. On 09-Feb-01, Rod Schnell wrote:
  3577. >>>  What tools do you regularly use for debugging? I've heard of enforcer
  3578. >>> many times, but whenever i read the overview of it, i don't bother
  3579. >>> installing it. It says that it just checks for illegal memory
  3580. >>> allocations. When I run the program from within StormC, i get a load
  3581. >>> of error messages there about that anyway.
  3582. >> Better get MuForce instead of enforcer (from MMULib.lha on Aminet), it's
  3583. >> based on the latest Enforcer sources plus it has more features and works
  3584. >> with mmu.library which is a really cool thing.
  3585. > Plus it's dead slow on an 040 and it'd be even slower on an 030...
  3586. I actually run MMU stuff on my '030 full time and I haven't noticed a
  3587. slowdown.
  3588. I hear '030 chips are better in that way. ;-)
  3589.      __ /\          /\__   /\   :      xav2@xav.to
  3590.  __ //// /\  /\/\  / / _\ / /\  |   http://www.xav.to
  3591.  \\\/// __ \/    \/ /   \/ __ \ | A-2000 39M 030/882/50
  3592.   \\/ \/  \/\/\/\/\/ \__/\/  \/ :   IT ALL FREEZES!!!
  3593. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3594. eGroups is now Yahoo! Groups
  3595. Click here for more details
  3596. http://click.egroups.com/1/11231/0/_/451227/_/981759557/
  3597. ---------------------------------------------------------------------_->
  3598. @ENDNODE
  3599. @NODE "Mail_106" " Re: Re: Alloc/Free___ Chip memory fragmentation "
  3600. Date: 02-10-01 10:28:19
  3601. Subject: @{b}Re: Re: Alloc/Free___ Chip memory fragmentation@{ub}
  3602.  Hi Rod,
  3603. > I tried MuForce once, both with standard options on and with minimal options
  3604. > on... Never messed with mmu.library options at all. It slowed the system
  3605. > down so much I was reminded of working with a plain 68000. That was when
  3606. > there were no hits, it got even slower if there were hits. Similar results
  3607. > with GaurdianAngel. However, that was a while back, maybe they and/or
  3608. > mmu.library have improved since then. Regardless, I'll stick with enforcer
  3609. > and Mungwall. They've allways worked well for me.
  3610. Looks like you were having the same problem I was having with mmu.library, this was a flaw of a quite old version, now it works correctly (I use it both on a Blizzard 1240/40 and on a BlizzardPPC/25/210), a lot of features have been added, BTW after installing it my PPC memory transfer were speeded up by over 25%, never understood why... See ya
  3611.  Gabriele
  3612. PS: It has an installer script so you haven't to mess with the whole thing by hand
  3613. TiscaliNet, libero accesso ad Internet.
  3614. http://www.tiscalinet.it
  3615. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3616. eGroups is now Yahoo! Groups
  3617. Click here for more details
  3618. http://click.egroups.com/1/11231/0/_/451227/_/981797302/
  3619. ---------------------------------------------------------------------_->
  3620. @ENDNODE
  3621. @NODE "Mail_107" " Help with gcc "
  3622. Date: 02-10-01 12:54:19
  3623. Subject: @{b}Help with gcc@{ub}
  3624. I don't know if this is the correct place to ask this but here goes anyway :
  3625. I'm currently improving my knowledge of C++ by studying a very modern book on the
  3626. subject. It assumes that you have access to gcc or equivalent. Beacuse of this
  3627. as I have StormC3 which does not support all the modern features of C++ and
  3628. based on all the problems reported I am not inclined to upgrade to StormGCC4,
  3629. I have downloaded the latest gcc from Aminet.
  3630. As up to now I have used only Borland C++ on the PC and StormC3 on the Amiga,
  3631. I have no idea how to use a command line compiler. Gcc comes with massive amounts
  3632. of documentation which I don't have time to read and don't really understand.
  3633. What are makefiles and how do I use them?
  3634. Can someone give me a few examples of how to compile and link a program
  3635. (For example, I have source files Test1.cpp, Test2.cpp & Test.h)?
  3636. Where do I need to put the system includes so gcc can find them (they're currently in
  3637. StormC3's "Include" directory)?
  3638. Finally, I've been trying to invoke g++ and make to find out how they work
  3639. but each time I do I get 01000005 GURU's which are 'Corrupt memory list in FreeMem(). Why?
  3640. Thanks,
  3641. Donald
  3642. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3643. eGroups is now Yahoo! Groups
  3644. Click here for more details
  3645. http://click.egroups.com/1/11231/0/_/451227/_/981806065/
  3646. ---------------------------------------------------------------------_->
  3647. @ENDNODE
  3648. @NODE "Mail_108" " Re: Help with gcc "
  3649. Date: 02-10-01 17:23:28
  3650. Subject: @{b}Re: Help with gcc@{ub}
  3651. Donald wrote:
  3652. > I have downloaded the latest gcc from Aminet.
  3653. The one on aminet in the geekgadgets dir is very old, get gcc from 
  3654. geekgadgets.org. This will solve a lot of problems. Also there is a 
  3655. guide to what is needed for standard setup. You may need some files 
  3656. from the alpha directory.
  3657. > What are makefiles and how do I use them?
  3658. You create them via configure. Read the docs section on creating them 
  3659. since I have not used it yet.
  3660. > Can someone give me a few examples of how to compile and link a 
  3661. > program
  3662. > (For example, I have source files Test1.cpp, Test2.cpp & Test.h)?
  3663. Simple.
  3664. gcc -c -o Test1.o Test1.cpp
  3665. will create object file called Test1.o from Test1.cpp. The -o is for 
  3666. output(in this case Test1.o), the -c is so it wont link with anything.
  3667. So you do that for all files eg.
  3668. gcc -c -o Test1.o Test1.cpp
  3669. gcc -c -o Test2.o Test2.cpp
  3670. Then to link you do
  3671. gcc -o Test Test1.o Test2.o
  3672. As you may have noticed the gcc command is clever and calls the 
  3673. linker and assembler(and the rest) by itself.
  3674. > Where do I need to put the system includes so gcc can find them 
  3675. > (they're currently in StormC3's "Include" directory)?
  3676. The latter versions(and download 2.95.1) use os-include for the os 
  3677. includes, but download fd2pragma from aminet to create the inlines 
  3678. for gcc.
  3679. > Finally, I've been trying to invoke g++ and make to find out how 
  3680. > they work but each time I do I get 01000005 GURU's which 
  3681. > are 'Corrupt memory list in FreeMem(). Why?
  3682. Most likely this is a stack size issue, increase it to 200,000. Also 
  3683. as it is a port from unix remember they need lots of stack.
  3684. Shinda
  3685. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3686. eGroups is now Yahoo! Groups
  3687. Click here for more details
  3688. http://click.egroups.com/1/11231/0/_/451227/_/981822211/
  3689. ---------------------------------------------------------------------_->
  3690. @ENDNODE
  3691. @NODE "Mail_109" " Re: Alloc/Free___ Chip memory fragmentation "
  3692. Date: 02-11-01 00:56:23
  3693. Subject: @{b}Re: Alloc/Free___ Chip memory fragmentation@{ub}
  3694. Czesc Xavier!
  3695. Dnia 09-Feb-01, Xavier Messersmith napisa
  3696. >> Plus it's dead slow on an 040 and it'd be even slower on an 030...
  3697. > I actually run MMU stuff on my '030 full time and I haven't noticed a
  3698. > slowdown.
  3699. You meant MMULib or MMULib plus MuTools? If the first one, try attached
  3700. scripts (please change path in Debug_Init and run Debug or Debug_MuTools) and
  3701. tell us how fast your Amiga is now ;).
  3702. Regards!
  3703. Can your ImageFX paint like bitmap painters?
  3704. Download: gfx/ifx/REDFiX.lha, ftp.novadesign.com
  3705. Przemyslaw 'SENSEI' Gruchala
  3706. code/gfx2d/gfx3d/webmaster
  3707. Amiga 1200
  3708. Apollo 1240/33 MHz, 18 MB RAM, BTC 33.6 bps
  3709. HDD 3.2 GB, HDD 520 MB, CD x12
  3710. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3711. eGroups is now Yahoo! Groups
  3712. Click here for more details
  3713. http://click.egroups.com/1/11231/0/_/451227/_/981931395/
  3714. ---------------------------------------------------------------------_->
  3715. @ENDNODE
  3716. @NODE "Mail_110" " Re: Help with gcc "
  3717. Date: 02-11-01 14:48:47
  3718. Subject: @{b}Re: Help with gcc@{ub}
  3719. Hello Shinda
  3720. On 10-Feb-01, you wrote:
  3721. >> What are makefiles and how do I use them?
  3722. > You create them via configure. Read the docs section on creating them 
  3723. > since I have not used it yet.
  3724. This is a misleading answer.
  3725. configure scripts are  distributed  with  UNIX  sources  to  faciliate  the
  3726. auto-generation  of  makefiles for the different platforms that program may
  3727. be compiled on.
  3728. Makefiles on the  other  hand  are  files  that  allow  you  to  limit  the
  3729. compilation  of  a project to only those files that have been altered since
  3730. the last compilation. So long as you have a properly constructed "Makefile"
  3731. in  the current directory, the running of the "make" executable will ensure
  3732. correct compilation.
  3733. There is no need  to  write  an  autoconf/automake  script  to  generate  a
  3734. Makefile.  Unless, you are writing a project that needs to be recompiled on
  3735. different platforms (and those platforms have differences that will  affect
  3736. the compilation of you program.), autoconf/automake is a waste of time.
  3737. Regards
  3738. Steve
  3739. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3740. eGroups is now Yahoo! Groups
  3741. Click here for more details
  3742. http://click.egroups.com/1/11231/0/_/451227/_/981903012/
  3743. ---------------------------------------------------------------------_->
  3744. @ENDNODE
  3745. @NODE "Mail_111" " ExAll() Compatability "
  3746. Date: 02-11-01 22:20:23
  3747. Subject: @{b}ExAll() Compatability@{ub}
  3748. Hello,
  3749. Does anybody have any info on what filesystems are broken with using
  3750. ExAll() dos function?  I remember some mention about certain CD-ROM
  3751. filesystems not working right with ExAll().  
  3752. Any info appreciated.  Is it safe to presume all HDD filesystems work
  3753. okay with this command?
  3754. Thanks,
  3755. mike.
  3756. .--------------------------------- ---- -    -- --------.
  3757. | AMiGA 1200EZT 060/PPC@240Mhz,82Mb RAM __/\__          |
  3758. | 3 HDD,DD FD,5 CD-ROMS,CDrW,ZiP250     \ o0 / bUDDa^SDS|
  3759. | SCSI+IDE, 56kModem, BVGfX, 19"VDU     /_'-_\          |
  3760. `------------------------------- --- -    \/   -- ------'
  3761.   http://www.BuddasWurld.com              ICQ: 29173597
  3762. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3763. eGroups is now Yahoo! Groups
  3764. Click here for more details
  3765. http://click.egroups.com/1/11231/0/_/451227/_/981930120/
  3766. ---------------------------------------------------------------------_->
  3767. @ENDNODE
  3768. @NODE "Mail_112" " Re: ExAll() Compatability "
  3769. Date: 02-12-01 03:38:27
  3770. Subject: @{b}Re: ExAll() Compatability@{ub}
  3771. On 12-Feb-01, Mike Carter wrote:
  3772. > Hello,
  3773. > Does anybody have any info on what filesystems are broken with using
  3774. > ExAll() dos function?  I remember some mention about certain CD-ROM
  3775. > filesystems not working right with ExAll().  
  3776. > Any info appreciated.  Is it safe to presume all HDD filesystems work
  3777. > okay with this command?
  3778. > Thanks,
  3779. > mike.
  3780. I don't think it's ever 100% safe to assume anything...
  3781. eg:    ExAll() causes a problem with DirOpus when accessing
  3782. a  FFS partition on another computer through ParNet....
  3783. Regards
  3784. _________________________________________
  3785. Colin Wenzel.  Quensland, Australia.
  3786. EMAIL:  colstv@hotkey.net.au
  3787. URL:       http://www.hotkey.net.au/~colstv/
  3788. AMIGA: 4000T,  68060/50,  150Mb RAM,  
  3789.                OS 3.9,  Spectrum Gfx Card + P96.
  3790. Need an Image Generator For CATV  ??
  3791.        http://connect.to/products
  3792. _________________________________________
  3793. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3794. eGroups is now Yahoo! Groups
  3795. Click here for more details
  3796. http://click.egroups.com/1/11231/0/_/451227/_/981945530/
  3797. ---------------------------------------------------------------------_->
  3798. @ENDNODE
  3799. @NODE "Mail_113" " Guigfx author "
  3800. Date: 02-12-01 10:34:17
  3801. Subject: @{b}Guigfx author@{ub}
  3802. A while back some people were asking if the bloke who wrote guigfx was
  3803. still alive... seeing as his website and email address didn;t work. 
  3804. Well I've managed to track down his proper email (from some source
  3805. code!) and he responded that he is alive.  For anybody wanting to
  3806. contact the author of guigfx or render libraries use:
  3807. timm.mueller@darmstadt.netsurf.de althought he did reply with the
  3808. address:-
  3809. tmueller@neoscientists.org so it seems the website is also back
  3810. working at http://www.neoscientists.org/
  3811. .--------------------------------- ---- -    -- --------.
  3812. | AMiGA 1200EZT 060/PPC@240Mhz,82Mb RAM __/\__          |
  3813. | 3 HDD,DD FD,5 CD-ROMS,CDrW,ZiP250     \ o0 / bUDDa^SDS|
  3814. | SCSI+IDE, 56kModem, BVGfX, 19"VDU     /_'-_\          |
  3815. `------------------------------- --- -    \/   -- ------'
  3816.   http://www.BuddasWurld.com              ICQ: 29173597
  3817. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3818. eGroups is now Yahoo! Groups
  3819. Click here for more details
  3820. http://click.egroups.com/1/11231/0/_/451227/_/981974155/
  3821. ---------------------------------------------------------------------_->
  3822. @ENDNODE
  3823. @NODE "Mail_114" " Re: Help with gcc "
  3824. Date: 02-12-01 14:35:41
  3825. Subject: @{b}Re: Help with gcc@{ub}
  3826. --- DonaldWM@stonelawdrive.freeserve.co.uk a 
  3827. crit :
  3828. > Hi,
  3829. Hi too,
  3830. > I don't know if this is the correct place to ask
  3831. > this but here goes anyway :
  3832. > I'm currently improving my knowledge of C++ by
  3833. > studying a very modern book on the
  3834. > subject. It assumes that you have access to gcc or
  3835. > equivalent. Beacuse of this
  3836. > as I have StormC3 which does not support all the
  3837. > modern features of C++ and
  3838. > based on all the problems reported I am not inclined
  3839. > to upgrade to StormGCC4,
  3840. > I have downloaded the latest gcc from Aminet.
  3841. > As up to now I have used only Borland C++ on the PC
  3842. > and StormC3 on the Amiga,
  3843. Some year ago, i've been using Borland C++ 4.51 at
  3844. work but it doesn't understand most of C++ goodies
  3845. that is understood by GCC 2.7.0 :-(
  3846. > I have no idea how to use a command line compiler.
  3847. > Gcc comes with massive amounts
  3848. > of documentation which I don't have time to read and
  3849. > don't really understand.
  3850. Only few options are usefull for a beginner or for an
  3851. average project :
  3852. -o        the target
  3853. -W & -Wall    turn on all warning
  3854. -I -L         Specifying include & libraries directories
  3855. > What are makefiles and how do I use them?
  3856. > Can someone give me a few examples of how to compile
  3857. > and link a program
  3858. > (For example, I have source files Test1.cpp,
  3859. > Test2.cpp & Test.h)?
  3860.     gcc test1.cpp -o test1
  3861. or with an old version of gcc
  3862.     g++ test1.cpp -o test1
  3863. If Test1.cpp & Test2.cpp is in the same project, it
  3864. should be
  3865.     gcc Test1.cpp Test2.cpp -o test
  3866. > Where do I need to put the system includes so gcc
  3867. > can find them (they're currently in
  3868. > StormC3's "Include" directory)?
  3869. Amiga's specifics includes should be used with GCC
  3870. (remove storm's ones).
  3871. But for libraries, I duno because it get mine from
  3872. Geek Gadget V 10.
  3873. > Finally, I've been trying to invoke g++ and make to
  3874. > find out how they work
  3875. > but each time I do I get 01000005 GURU's which are
  3876. > 'Corrupt memory list in FreeMem(). Why?
  3877. Installation problem !! Is ixemul.library version is
  3878. ok for your GCC version ? Have you installed BinUtils
  3879. Laurent
  3880. =====
  3881. The misspelling master is on the Web.
  3882.    _________
  3883.   /        /(
  3884.  /  Dico  / /    100 % Dictionnary Free !
  3885. /________/ /         
  3886. (#######( /
  3887. Quoi, des fautes d'orthographe! Pas possible ;-D.
  3888. __________________________________________________
  3889. Do You Yahoo!?
  3890. Get personalized email addresses from Yahoo! Mail - only $35 
  3891. a year!  http://personal.mail.yahoo.com/
  3892. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3893. eGroups is now Yahoo! Groups
  3894. Click here for more details
  3895. http://click.egroups.com/1/11231/0/_/451227/_/981984942/
  3896. ---------------------------------------------------------------------_->
  3897. @ENDNODE
  3898. @NODE "Mail_115" " Re: Datatypes Pic "
  3899. Date: 02-12-01 14:37:24
  3900. Subject: @{b}Re: Datatypes Pic@{ub}
  3901. Hi Shinda!
  3902. I would not like to load a picture from my hd. It is only in memory.
  3903. thanks.
  3904. http://homepages.compuserve.de/BlackDog638/index.html
  3905. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3906. eGroups is now Yahoo! Groups
  3907. Click here for more details
  3908. http://click.egroups.com/1/11231/0/_/451227/_/981988733/
  3909. ---------------------------------------------------------------------_->
  3910. @ENDNODE
  3911. @NODE "Mail_116" " Re: ExAll() Compatability "
  3912. Date: 02-12-01 15:43:24
  3913. Subject: @{b}Re: ExAll() Compatability@{ub}
  3914. Hello Mike
  3915. On 11-Hel-01, you wrote:
  3916. MC> Does anybody have any info on what filesystems are broken with using
  3917. MC> ExAll() dos function?  I remember some mention about certain CD-ROM
  3918. MC> filesystems not working right with ExAll().  
  3919. MC> Any info appreciated.  Is it safe to presume all HDD filesystems work
  3920. MC> okay with this command?
  3921. Well, not really. There are bugs in V36/37 filesystems and ExAll() emulation
  3922. was broken in V36. AFAIK there are no problems in V39+, at least if SetPatch
  3923. is run.
  3924. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3925. eGroups is now Yahoo! Groups
  3926. Click here for more details
  3927. http://click.egroups.com/1/11231/0/_/451227/_/981989766/
  3928. ---------------------------------------------------------------------_->
  3929. @ENDNODE
  3930. @NODE "Mail_117" " MUI "
  3931. Date: 02-12-01 19:17:16
  3932. Subject: @{b}MUI@{ub}
  3933. Hello,
  3934. I want to start programming using MUI for the GUI.... Want do i need to get
  3935. from aminet to start? Is there some main MUI3.8 DEV archive? 
  3936. And is there a program that can make a MUI GUI using some kind of  drag and
  3937. drop?
  3938. Groeten,
  3939. Joris Kempen - webmaster
  3940. visit www.detrekkers.com
  3941. What happens to the hole when the cheese is gone?
  3942. -- Bertolt Brecht
  3943. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3944. eGroups is now Yahoo! Groups
  3945. Click here for more details
  3946. http://click.egroups.com/1/11231/0/_/451227/_/982002165/
  3947. ---------------------------------------------------------------------_->
  3948. @ENDNODE
  3949. @NODE "Mail_118" " Re: MUI "
  3950. Date: 02-12-01 19:55:28
  3951. Subject: @{b}Re: MUI@{ub}
  3952. Hello torrelli@mctel.fr
  3953. On 12-Feb-01, you wrote:
  3954. > You basically need
  3955. > mui38dev.lha dev/mui 319K 208 MagicUserInterface 3.8, developer files
  3956. > you might want to give an eye to:
  3957. > MUIUndoc18.lha     dev/mui     26K 132 Some undocumented features of MUI
  3958. xThanks, i got them all...
  3959. >> And is there a program that can make a MUI GUI using some kind of drag
  3960. >> and drop?
  3961. > There is Eric totel's muibuilder, but the code it generates is not very
  3962. > good (at least the gcc generators I tried are hook based or return id
  3963. > based ), not all the tags are supported, there's no support for custom
  3964. > classes or private classes... And it's not drag and drop oriented (the
  3965. > latest working version wasn't actually)
  3966. OK i'll try it, otherwise just do some stuff by hand... I just got used to
  3967. Delphi and Visual Cafe :)
  3968. > Hope it helps
  3969. Yes it does !!! Thanks for your help.>
  3970. Regards
  3971. Groeten,
  3972. Joris Kempen - webmaster
  3973. visit www.detrekkers.com
  3974. Whenever you find that you are on the side of the majority, it is
  3975. time to reform.
  3976. -- Mark Twain
  3977. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  3978. eGroups is now Yahoo! Groups
  3979. Click here for more details
  3980. http://click.egroups.com/1/11231/0/_/451227/_/982004232/
  3981. ---------------------------------------------------------------------_->
  3982. @ENDNODE
  3983. @NODE "Mail_119" " Re: MUI "
  3984. Date: 02-12-01 20:34:57
  3985. Subject: @{b}Re: MUI@{ub}
  3986. > Hello,
  3987. > I want to start programming using MUI for the GUI.... Want do i need to get
  3988. > from aminet to start? Is there some main MUI3.8 DEV archive? 
  3989. You basically need
  3990. mui38dev.lha dev/mui 319K 208 MagicUserInterface 3.8, developer files
  3991. you might want to give an eye to:
  3992. MUIUndoc18.lha     dev/mui     26K 132 Some undocumented features of MUI
  3993. and eventually get the developer part of the custom class you want to put
  3994. in your apps.
  3995. > And is there a program that can make a MUI GUI using some kind of  drag and
  3996. > drop?
  3997. There is Eric totel's muibuilder, but the code it generates is not very good
  3998. (at least the gcc generators I tried are hook based or return id based ),
  3999. not all the tags are supported, there's no support for custom classes or private 
  4000. classes... And it's not drag and drop oriented (the latest working version 
  4001. wasn't actually)
  4002. A tool I sometimes use to save time is bcc, a preprocessor that simplifies the
  4003. creation of private classes
  4004. bcc.lha            dev/mui     66K 152 BCC v3.5 to best solution for MUI/BOOPSI
  4005. I don't know if there are better ones, this one is nice for simple classes,
  4006. you might want later to customize the generated code, since the source of bcc
  4007. is available too.
  4008. and of course tons of sources are available on aminet.
  4009. Hope it helps
  4010.  Phil.
  4011. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4012. eGroups is now Yahoo! Groups
  4013. Click here for more details
  4014. http://click.egroups.com/1/11231/0/_/451227/_/982003029/
  4015. ---------------------------------------------------------------------_->
  4016. @ENDNODE
  4017. @NODE "Mail_120" " Re: Datatypes Pic "
  4018. Date: 02-12-01 21:32:17
  4019. Subject: @{b}Re: Datatypes Pic@{ub}
  4020.  wrote:
  4021. > I would not like to load a picture from my hd. It is only in memory.
  4022. Then you must create a blank picture dt object via NewDTObject with 
  4023. source type of DTST_RAM and GID_PICTURE, then fill in the PDTA_BitMap 
  4024. via SetDTAttrs() and also PDTA_ColorRegisters. You must also 
  4025. GetDTAttrs() the bitmap header and set this. Like I said before for 
  4026. full details on what you need to set look at piture datatype sub 
  4027. classes examples.
  4028. Shinda
  4029. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4030. eGroups is now Yahoo! Groups
  4031. Click here for more details
  4032. http://click.egroups.com/1/11231/0/_/451227/_/982009943/
  4033. ---------------------------------------------------------------------_->
  4034. @ENDNODE
  4035. @NODE "Mail_121" " Re: ExAll() Compatability "
  4036. Date: 02-12-01 00:26:21
  4037. Subject: @{b}Re: ExAll() Compatability@{ub}
  4038. Hello Mike,
  4039. > Any info appreciated.  Is it safe to presume all HDD filesystems work
  4040. > okay with this command?
  4041. At least they should! :-)  I had problems with the MatchString field of
  4042. the ExAllControl structure. It was ignored by PFS, but I reported the
  4043. problem and I think they fixed it, though I never re-tested it.
  4044. Kind regards Allan
  4045. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4046. eGroups is now Yahoo! Groups
  4047. Click here for more details
  4048. http://click.egroups.com/1/11231/0/_/451227/_/982023707/
  4049. ---------------------------------------------------------------------_->
  4050. @ENDNODE
  4051. @NODE "Mail_122" " Programmer == User? (was: Re: Custom screens) "
  4052. Date: 02-13-01 01:20:00
  4053. Subject: @{b}Programmer == User? (was: Re: Custom screens)@{ub}
  4054. Hello Xavier,
  4055. > [...]
  4056. > Nevermind the programmer often does end up being a user and hence does
  4057. > know what a user wants. :-)
  4058. I couldn't let this comment pass, knowing that this belief is one of
  4059. the reasons for all the crappy software/interfaces that we are faced
  4060. with every day. A programmer thinks very different than the average
  4061. user, if you don't beleive me then tell me why only programmers end up
  4062. as users of something like emacs?
  4063. However, if you give a task to 5 different users then they'll probably
  4064. solve it in at least 3 different ways -- which brings me back to the
  4065. main point of not disabling features, simply because the programmer
  4066. assume that they won't be used...
  4067. But enough about this :-)
  4068. Kind regards Allan
  4069. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4070. eGroups is now Yahoo! Groups
  4071. Click here for more details
  4072. http://click.egroups.com/1/11231/0/_/451227/_/982023709/
  4073. ---------------------------------------------------------------------_->
  4074. @ENDNODE
  4075. @NODE "Mail_123" " chip memory defragmentation "
  4076. Date: 02-13-01 15:52:50
  4077. Subject: @{b}chip memory defragmentation@{ub}
  4078. GRRR!!
  4079. ok, it's me again.
  4080. thanks for all the help so far.
  4081. i have installed MuGuardianAngel and SegTracker (& MuForce, of course),
  4082. after trying enforcer and not liking the aftertaste it left.
  4083. so, i run my program for the first time (remember, the simple double
  4084. buffer one) and it's all fine, the little graphical memory watcher thing
  4085. that comes with poolmem looks ok, avail in shell says i have plenty of
  4086. memory left. everything is fine after it... maybe i have a little less
  4087. chip RAM than before, but i can live with that. no MuGuardianAngel hits.
  4088. then i run it for the second time and my chip ram gets totally
  4089. defragmente; avail and the workbench bar say that i have about 1600k
  4090. left, but the largest chunk is about 30/40k!
  4091. Are there any known bugs with this kindof thing?
  4092. much obliged, as always.
  4093. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4094. eGroups is now Yahoo! Groups
  4095. Click here for more details
  4096. http://click.egroups.com/1/11231/0/_/451227/_/982076165/
  4097. ---------------------------------------------------------------------_->
  4098. @ENDNODE
  4099. @NODE "Mail_124" " chip memory defragmentation "
  4100. Date: 02-13-01 15:52:50
  4101. Subject: @{b}chip memory defragmentation@{ub}
  4102. GRRR!!
  4103. ok, it's me again.
  4104. thanks for all the help so far.
  4105. i have installed MuGuardianAngel and SegTracker (& MuForce, of course),
  4106. after trying enforcer and not liking the aftertaste it left.
  4107. so, i run my program for the first time (remember, the simple double
  4108. buffer one) and it's all fine, the little graphical memory watcher thing
  4109. that comes with poolmem looks ok, avail in shell says i have plenty of
  4110. memory left. everything is fine after it... maybe i have a little less
  4111. chip RAM than before, but i can live with that. no MuGuardianAngel hits.
  4112. then i run it for the second time and my chip ram gets totally
  4113. defragmente; avail and the workbench bar say that i have about 1600k
  4114. left, but the largest chunk is about 30/40k!
  4115. Are there any known bugs with this kindof thing?
  4116. much obliged, as always.
  4117. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4118. eGroups is now Yahoo! Groups
  4119. Click here for more details
  4120. http://click.egroups.com/1/11231/0/_/451227/_/982076165/
  4121. ---------------------------------------------------------------------_->
  4122. @ENDNODE
  4123. @NODE "Mail_125" " Re: chip memory defragmentation "
  4124. Date: 02-13-01 16:13:20
  4125. Subject: @{b}Re: chip memory defragmentation@{ub}
  4126. It sounds like you're leaving little bits behind & not 
  4127. de-allocating it, leaving the memory segmented.
  4128. Try using AllocVec() instead of AllocMem(),
  4129. that way, you free exactly the amount you allocated
  4130. without you having to keep track of the size..
  4131. FreeVec() only required the memory address parameter...
  4132. On 14-Feb-01, William Robinson wrote:
  4133. > GRRR!!
  4134. > ok, it's me again.
  4135. > thanks for all the help so far.
  4136. > i have installed MuGuardianAngel and SegTracker (& MuForce, of
  4137. > course), after trying enforcer and not liking the aftertaste it left.
  4138. > so, i run my program for the first time (remember, the simple double
  4139. > buffer one) and it's all fine, the little graphical memory watcher
  4140. > thing that comes with poolmem looks ok, avail in shell says i have
  4141. > plenty of memory left. everything is fine after it... maybe i have a
  4142. > little less chip RAM than before, but i can live with that. no
  4143. > MuGuardianAngel hits. then i run it for the second time and my chip
  4144. > ram gets totally defragmente; avail and the workbench bar say that i
  4145. > have about 1600k left, but the largest chunk is about 30/40k!
  4146. > Are there any known bugs with this kindof thing?
  4147. > much obliged, as always.
  4148. > bill
  4149. Regards
  4150. _________________________________________
  4151. Colin Wenzel.  Quensland, Australia.
  4152. EMAIL:  colstv@hotkey.net.au
  4153. URL:       http://www.hotkey.net.au/~colstv/
  4154. AMIGA: 4000T,  68060/50,  150Mb RAM,  
  4155.                OS 3.9,  Spectrum Gfx Card + P96.
  4156. Need an Image Generator For CATV  ??
  4157.        http://connect.to/products
  4158. _________________________________________
  4159. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4160. eGroups is now Yahoo! Groups
  4161. Click here for more details
  4162. http://click.egroups.com/1/11231/0/_/451227/_/982077242/
  4163. ---------------------------------------------------------------------_->
  4164. @ENDNODE
  4165. @NODE "Mail_126" " Re: Nowt'werking "
  4166. Date: 02-02-01 04:55:28
  4167. Subject: @{b}Re: Nowt'werking@{ub}
  4168. Hi deal-amiga-club@the-top.co.uk 
  4169. deal-amiga-club@the-top.co.uk wrote this on 26-Jan-01 at 17:20:09
  4170. > --- In amiga-c@y..., Tim Hanson <msinister@c...> wrote:
  4171. >> You`ve got me thinking now...
  4172. I try not to do it too much.
  4173. >> If I knocked out a ScorchedTanks clone would someone be prepared to 
  4174. > do the
  4175. >> network code? 
  4176. > Chicken/egg
  4177. > now if there was a network game launcher front end you could write
  4178. > for.
  4179. What if I wrote the code with dummy sendToServer(struct data *d) etc type
  4180. functions? Could someone fill in the gaps.
  4181. any persons, living or dead, are entirely coincidental.    
  4182. Tim Hanson,
  4183. by the River,Canterbury, Kent.
  4184. Amiga A1200T,`040/25,603e/160,32MB Fast,BVisionPPC,
  4185. 8.4GB IDE HD,ZIP SCSI,RENO x2CD SCSI,Pace 56K
  4186. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4187. eGroups is now Yahoo! Groups
  4188. Click here for more details
  4189. http://click.egroups.com/1/11231/0/_/451227/_/982099939/
  4190. ---------------------------------------------------------------------_->
  4191. @ENDNODE
  4192. @NODE "Mail_127" " Re: chip memory defragmentation "
  4193. Date: 02-14-01 02:06:03
  4194. Subject: @{b}Re: chip memory defragmentation@{ub}
  4195. Czesc William!
  4196. Dnia 13-Feb-01, William Robinson napisa
  4197. > i have installed MuGuardianAngel and SegTracker (& MuForce, of course),
  4198. > after trying enforcer and not liking the aftertaste it left.
  4199. MuGA in my scripts requires Sushi...
  4200. > so, i run my program for the first time (remember, the simple double
  4201. > buffer one) and it's all fine, the little graphical memory watcher thing
  4202. > that comes with poolmem looks ok, avail in shell says i have plenty of
  4203. > memory left. everything is fine after it... maybe i have a little less
  4204. > chip RAM than before, but i can live with that. no MuGuardianAngel hits.
  4205. No. I compiled your source code in SAS/C (after changing to ANSI C, C++ has
  4206. too many errors) and I recived two MuGA hits.
  4207. > then i run it for the second time and my chip ram gets totally
  4208. > defragmente; avail and the workbench bar say that i have about 1600k
  4209. > left, but the largest chunk is about 30/40k!
  4210. Change line:
  4211. RectFill(gaRP,0,0,SCREENWIDTH,SCREENHEIGHT);
  4212. RectFill(gaRP,0,0,SCREENWIDTH-1,SCREENHEIGHT-1);
  4213. or to... nothing (bitmap was cleared by BltClear() couple lines above!)...
  4214. and everything will be fine. Your program rendered outside a screen bitmap...
  4215. I really would like see that you will use modern double buffering methods ;).
  4216. You have A500 with AmigaOS v1.3 or similar? ;)
  4217. Regards!
  4218. Can your ImageFX paint like bitmap painters?
  4219. Download: gfx/ifx/REDFiX.lha, ftp.novadesign.com
  4220. Przemyslaw 'SENSEI' Gruchala
  4221. code/gfx2d/gfx3d/webmaster
  4222. Amiga 1200
  4223. Apollo 1240/33 MHz, 18 MB RAM, BTC 33.6 bps
  4224. HDD 3.2 GB, HDD 520 MB, CD x12
  4225. Prezentacja oferty i sprzedaz produktow Twojej firmy w Centrum e-biznesu
  4226.          teraz za niecala zlotowke dziennie!
  4227. KLIKNIJ I ZAMOW http://www.getin.pl/centrum/es_logon.asp
  4228. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4229. eGroups is now Yahoo! Groups
  4230. Click here for more details
  4231. http://click.egroups.com/1/11231/0/_/451227/_/982186124/
  4232. ---------------------------------------------------------------------_->
  4233. @ENDNODE
  4234. @NODE "Mail_128" " Again clipping graphics output "
  4235. Date: 02-14-01 03:30:38
  4236. Subject: @{b}Again clipping graphics output@{ub}
  4237. Hello All,
  4238. I've tried to clip graphics output to the rastport with 
  4239. layers.library help. This works perfectly on AGA, but seems
  4240. to cause problems under CGX and Picasso96 on graphics boards.
  4241. Is there any ability to do the same without layers.library?
  4242. As I could understand from the previous discussion, it is a 
  4243. bad idea to use layers.library for such a purpose as drawing
  4244. an invisible graphics in a rastport in fast memory, and then 
  4245. blit it to a visible windows rastport?
  4246. Regards
  4247. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4248. eGroups is now Yahoo! Groups
  4249. Click here for more details
  4250. http://click.egroups.com/1/11231/0/_/451227/_/982117870/
  4251. ---------------------------------------------------------------------_->
  4252. @ENDNODE
  4253. @NODE "Mail_129" " Integrity checker for AVI files? "
  4254. Date: 02-14-01 10:20:15
  4255. Subject: @{b}Integrity checker for AVI files?@{ub}
  4256. Hello,
  4257. I am just porting a tool for creating AVI-Files to the Amiga. Unfortunately even the original tool is not absolutely bug free, e.g. the generated AVI-Files could often not played under W95/NT.
  4258. So does anybody know a tool (PC or Amiga) to check the integrity / validaty of an AVI-File?
  4259. I tried Vidtrace and Riffscan, but they don't display errors for my AVI-Files....
  4260. If I however select "properties/details" under Windows. I get the message "file damaged or improper format".
  4261. Kind regards Alexander Fritsch
  4262. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4263. eGroups is now Yahoo! Groups
  4264. Click here for more details
  4265. http://click.egroups.com/1/11231/0/_/451227/_/982142421/
  4266. ---------------------------------------------------------------------_->
  4267. @ENDNODE
  4268. @NODE "Mail_130" " Re: Integrity checker for AVI files? "
  4269. Date: 02-14-01 11:16:25
  4270. Subject: @{b}Re: Integrity checker for AVI files?@{ub}
  4271. Hi Alexander,
  4272. > Hello,
  4273. > I am just porting a tool for creating AVI-Files to the Amiga. 
  4274. Unfortunately
  4275. > even the original tool is not absolutely bug free, e.g. the generated
  4276. > AVI-Files could often not played under W95/NT.
  4277. > So does anybody know a tool (PC or Amiga) to check the integrity /
  4278. > validaty of an AVI-File?
  4279. > I tried Vidtrace and Riffscan, but they don't display errors for my
  4280. > AVI-Files....
  4281. > If I however select "properties/details" under Windows. I get the 
  4282. message
  4283. > "file damaged or improper format".
  4284. Sorry, I know of no tool.
  4285. Are you sure you are not experiencing endian problems in the code?  
  4286. kind of thing often happens when writing such data.
  4287. Was the code originally written for a x86 processor?
  4288. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4289. eGroups is now Yahoo! Groups
  4290. Click here for more details
  4291. http://click.egroups.com/1/11231/0/_/451227/_/982145787/
  4292. ---------------------------------------------------------------------_->
  4293. @ENDNODE
  4294. @NODE "Mail_131" " Re: Again clipping graphics output "
  4295. Date: 02-14-01 11:52:23
  4296. Subject: @{b}Re: Again clipping graphics output@{ub}
  4297. Hello Serge,
  4298. > I've tried to clip graphics output to the rastport with 
  4299. > layers.library help. This works perfectly on AGA, but seems
  4300. > to cause problems under CGX and Picasso96 on graphics boards.
  4301. > Is there any ability to do the same without layers.library?
  4302. Someone at the MUI list has written replacement functions for most of
  4303. gfx library, and these can clip to a bounding box (w/o layers). Would
  4304. that be suitable for your project?
  4305. Kind regards Allan
  4306. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4307. eGroups is now Yahoo! Groups
  4308. Click here for more details
  4309. http://click.egroups.com/1/11231/0/_/451227/_/982152567/
  4310. ---------------------------------------------------------------------_->
  4311. @ENDNODE
  4312. @NODE "Mail_132" " StormC debug vars "
  4313. Date: 02-14-01 13:01:06
  4314. Subject: @{b}StormC debug vars@{ub}
  4315. Hello,
  4316. I'm using the StormC3 version from the Dev2.1 CD, but i have a problem with
  4317. debugging. When i want to watch some variabel i can't get it to display the
  4318. right info.
  4319. When i have a Struct Screen *myscreen, and initiliaze it using myscreen =
  4320. OpenScreenTaglist, the screen get's opened, the myscreen gets a value but
  4321. can't inspect the struct it consists of.
  4322. When i try to do the same with a given example from StormC i don't have a
  4323. problem with it, I tried the Colorwheel example, debugged it and i could
  4324. inspect the myscreen struct, with all it's info: left,top, width etc.
  4325. Inspected the both projectfiles, but i couldn't find any different settings.
  4326. Anyone know what this can be? 
  4327. Thanks
  4328. Groeten,
  4329. Joris Kempen - webmaster
  4330. visit www.detrekkers.com
  4331. Success is like a fart - only your own smells nice.
  4332. -- James P. Hogan
  4333. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4334. eGroups is now Yahoo! Groups
  4335. Click here for more details
  4336. http://click.egroups.com/1/11231/0/_/451227/_/982152394/
  4337. ---------------------------------------------------------------------_->
  4338. @ENDNODE
  4339. @NODE "Mail_133" " imagepool.library & Transparency "
  4340. Date: 02-14-01 16:49:54
  4341. Subject: @{b}imagepool.library & Transparency@{ub}
  4342. Hello,
  4343.     I'm writing an MUI custom class which uses imagepool.library to
  4344.     load images. When my class draws the image using BltBitMapRastPort()
  4345.     color 0 is not transparent. So what do I have to do to the bitmap to
  4346.     make color 0 transparent???
  4347. Dave 'Trebor' Arbuthnot
  4348. A1200/Apollo 1240/25Mhz/16mb FastRam/48x
  4349. CD-Rom/56k Modem/15Khz Sonica Monitor
  4350. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4351. eGroups is now Yahoo! Groups
  4352. Click here for more details
  4353. http://click.egroups.com/1/11231/0/_/451227/_/982188646/
  4354. ---------------------------------------------------------------------_->
  4355. @ENDNODE
  4356. @NODE "Mail_134" " Re: Integrity checker for AVI files? "
  4357. Date: 02-14-01 20:23:37
  4358. Subject: @{b}Re: Integrity checker for AVI files?@{ub}
  4359. Hello Fritsch
  4360. On 14-Feb-01, Fritsch Alexander wrote:
  4361. > Hello,
  4362. > I am just porting a tool for creating AVI-Files to the Amiga.
  4363. > Unfortunately even the original tool is not absolutely bug free, e.g. the
  4364. > generated AVI-Files could often not played under W95/NT.
  4365. what is name of that tool? I was porting one of avi creator to amiga, maybe
  4366. it is the same?
  4367.  Sebastian
  4368. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4369. eGroups is now Yahoo! Groups
  4370. Click here for more details
  4371. http://click.egroups.com/1/11231/0/_/451227/_/982181376/
  4372. ---------------------------------------------------------------------_->
  4373. @ENDNODE
  4374. @NODE "Mail_135" " Re: Again clipping graphics output "
  4375. Date: 02-14-01 23:18:09
  4376. Subject: @{b}Re: Again clipping graphics output@{ub}
  4377. Hello Allan
  4378. On 14-Feb-01, you wrote:
  4379. AO> Hello Serge,
  4380. AO>> I've tried to clip graphics output to the rastport with 
  4381. AO>> layers.library help. This works perfectly on AGA, but seems
  4382. AO>> to cause problems under CGX and Picasso96 on graphics boards.
  4383. AO>> Is there any ability to do the same without layers.library?
  4384. AO> Someone at the MUI list has written replacement functions for most of
  4385. AO> gfx library, and these can clip to a bounding box (w/o layers). Would
  4386. AO> that be suitable for your project?
  4387. Yes, that would be nice, since I use MUI. Where could I get them?
  4388. Regards
  4389. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4390. eGroups is now Yahoo! Groups
  4391. Click here for more details
  4392. http://click.egroups.com/1/11231/0/_/451227/_/982189129/
  4393. ---------------------------------------------------------------------_->
  4394. @ENDNODE
  4395. @NODE "Mail_136" " Re: imagepool.library & Transparency "
  4396. Date: 02-14-01 23:29:54
  4397. Subject: @{b}Re: imagepool.library & Transparency@{ub}
  4398. Hello David,
  4399. > [...] When my class draws the image using BltBitMapRastPort()
  4400. > color 0 is not transparent. So what do I have to do to the bitmap
  4401. > to make color 0 transparent???
  4402. You need to use BltMaskBitMapRastPort() instead (together with the mask
  4403. obtained from imagepool.library).
  4404. Kind regards Allan
  4405. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4406. eGroups is now Yahoo! Groups
  4407. Click here for more details
  4408. http://click.egroups.com/1/11231/0/_/451227/_/982195290/
  4409. ---------------------------------------------------------------------_->
  4410. @ENDNODE
  4411. @NODE "Mail_137" " Re: Again clipping graphics output "
  4412. Date: 02-15-01 00:57:57
  4413. Subject: @{b}Re: Again clipping graphics output@{ub}
  4414. Czesc Serge!
  4415. Dnia 14-Feb-01, Serge Tumanyan napisa
  4416. > I've tried to clip graphics output to the rastport with 
  4417. > layers.library help. This works perfectly on AGA, but seems
  4418. > to cause problems under CGX and Picasso96 on graphics boards.
  4419. Could you precise what is going on under CGFX and P96? I used this method (or
  4420. hmmm, I was forced to use it by AmigaOS...) in my BOOPSI scale.gadget and it
  4421. works fine everywhere... Maybe working example source code will help us a
  4422. bit... ?
  4423. > Is there any ability to do the same without layers.library?
  4424. Yes. You can calculate coordinates so they will fit into bitmap... It could be
  4425. a problem if you would like to use, for instance, Text() function...
  4426. Instead calculating coordinates you could allocate bitmap with enought size to
  4427. hold whole image (you must calculate exactly how big will be this image, if
  4428. you make mistake of 1 pixel computer will crash...), render to it and blit
  4429. from this bitmap to destination rastport. This is a more memory consuming
  4430. method...
  4431. Regards!
  4432. Can your ImageFX paint like bitmap painters?
  4433. Download: gfx/ifx/REDFiX.lha, ftp.novadesign.com
  4434. Przemyslaw 'SENSEI' Gruchala
  4435. code/gfx2d/gfx3d/webmaster
  4436. Amiga 1200
  4437. Apollo 1240/33 MHz, 18 MB RAM, BTC 33.6 bps
  4438. HDD 3.2 GB, HDD 520 MB, CD x12
  4439.         Internet szansa dla malego i sredniego biznesu.
  4440. Przyjdz i przekonaj sie o tym na Seminarium technicznym "NetWorld"
  4441.      Badz czujny i wlacz sie w nurt gospodarki internetowej.
  4442.          Kliknij: http://www.networld.com.pl/seminaria           
  4443. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4444. eGroups is now Yahoo! Groups
  4445. Click here for more details
  4446. http://click.egroups.com/1/11231/0/_/451227/_/982271925/
  4447. ---------------------------------------------------------------------_->
  4448. @ENDNODE
  4449. @NODE "Mail_138" " Re: imagepool.library & Transparency "
  4450. Date: 02-15-01 01:41:24
  4451. Subject: @{b}Re: imagepool.library & Transparency@{ub}
  4452. On 15-Feb-01, Allan Odgaard wrote:
  4453. > Hello David,
  4454. > You need a picture.datatype V43+ for it to work. And proper decoders as
  4455. > well (some ILBM and PNG decoders are broken).
  4456. Where can i get one as i've only got an AGA system and the CGX one doesn't
  4457. support AGA (as i'm sure you know). If there isn't one available then what
  4458. other way is there of support transparency on AGA systems ???
  4459. Regards
  4460. Dave 'Trebor' Arbuthnot
  4461. A1200/Apollo 1240/25Mhz/16mb FastRam/48x
  4462. CD-Rom/56k Modem/15Khz Sonica Monitor
  4463. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4464. eGroups is now Yahoo! Groups
  4465. Click here for more details
  4466. http://click.egroups.com/1/11231/0/_/451227/_/982251347/
  4467. ---------------------------------------------------------------------_->
  4468. @ENDNODE
  4469. @NODE "Mail_139" " Re: imagepool.library & Transparency "
  4470. Date: 02-15-01 05:15:07
  4471. Subject: @{b}Re: imagepool.library & Transparency@{ub}
  4472. On 14-Feb-01, Allan Odgaard wrote:
  4473. > Hello David,
  4474. >> [...] When my class draws the image using BltBitMapRastPort()
  4475. >> color 0 is not transparent. So what do I have to do to the bitmap
  4476. >> to make color 0 transparent???
  4477. > You need to use BltMaskBitMapRastPort() instead (together with the mask
  4478. > obtained from imagepool.library).
  4479. Thanks for the advice Allan. Unfortunatley no matter what image I tried 
  4480. the IP_Image->MaskPlane was always null. any ideas???
  4481. Regards
  4482. Dave 'Trebor' Arbuthnot
  4483. A1200/Apollo 1240/25Mhz/16mb FastRam/48x
  4484. CD-Rom/56k Modem/15Khz Sonica Monitor
  4485. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4486. eGroups is now Yahoo! Groups
  4487. Click here for more details
  4488. http://click.egroups.com/1/11231/0/_/451227/_/982210553/
  4489. ---------------------------------------------------------------------_->
  4490. @ENDNODE
  4491. @NODE "Mail_140" " SOT: Programmers required : Amiga port of MIDI player "
  4492. Date: 02-15-01 11:54:01
  4493. Subject: @{b}SOT: Programmers required : Amiga port of MIDI player@{ub}
  4494. Hi everyone,
  4495. Apologies for asking in here ....
  4496. I'm just about to restart a port of the Timidity++ MIDI player to the Amiga
  4497. (project called Amidity) and I'd like a little assistance.
  4498. These days having version for 68K AmigaOS, WarpOS and MorphOS are pretty
  4499. much expected, and AHI is a must.  A Voyager plugin would also be a nice
  4500. addition.
  4501. The main reason for starting this project is that GMPlay that most people
  4502. use is starting to look a little dated and it doesn't support AHI.
  4503. The project should be going up on Sourceforge soon (just waiting for it to
  4504. be approved and setup)
  4505. Anyone interested in helping out, drop me an e-mail (remember to get rid of
  4506. my SPAM blocker in my e-mail address)
  4507. People with :
  4508. Experience in 68K
  4509. Experience in WarpOS
  4510. Experience in MorphOS
  4511. Experience in Voyager Plugins
  4512. Experience in SDL
  4513. Experience in AHI
  4514. a brain! ;-)
  4515. Would be most welcome.
  4516. Regards
  4517. mark@storagedirect.REMOVETHISBIT.com
  4518. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4519. eGroups is now Yahoo! Groups
  4520. Click here for more details
  4521. http://click.egroups.com/1/11231/0/_/451227/_/982234129/
  4522. ---------------------------------------------------------------------_->
  4523. @ENDNODE
  4524. @NODE "Mail_141" " Re: imagepool.library & Transparency "
  4525. Date: 02-15-01 12:28:13
  4526. Subject: @{b}Re: imagepool.library & Transparency@{ub}
  4527. Hello David,
  4528. >>> [...] When my class draws the image using BltBitMapRastPort()
  4529. >>> color 0 is not transparent. So what do I have to do to the bitmap
  4530. >>> to make color 0 transparent???
  4531. >> You need to use BltMaskBitMapRastPort() instead (together with the
  4532. >> mask obtained from imagepool.library).
  4533. > Thanks for the advice Allan. Unfortunatley no matter what image I
  4534. > tried the IP_Image->MaskPlane was always null. any ideas???
  4535. You need a picture.datatype V43+ for it to work. And proper decoders as
  4536. well (some ILBM and PNG decoders are broken).
  4537. Kind regards Allan
  4538. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4539. eGroups is now Yahoo! Groups
  4540. Click here for more details
  4541. http://click.egroups.com/1/11231/0/_/451227/_/982237803/
  4542. ---------------------------------------------------------------------_->
  4543. @ENDNODE
  4544. @NODE "Mail_142" " Re: Re: chip memory defragmentation "
  4545. Date: 02-15-01 15:52:51
  4546. Subject: @{b}Re: Re: chip memory defragmentation@{ub}
  4547. thanks, sensei!
  4548. > > i have installed MuGuardianAngel and SegTracker (& MuForce, of course),
  4549. > > after trying enforcer and not liking the aftertaste it left.
  4550. > MuGA in my scripts requires Sushi...
  4551.     yeah, i'm using sasushi (or whatever it's called). when i do get
  4552. it working though, i get a zillion hits when i boot up. i have tried
  4553. removing the problem programs slowly but there's so many of them. and
  4554. also i find that EdWord produces constant hits for the moment you load
  4555. it up and whenever you edit it in anyway.
  4556.     so, instead, i'm dismantling my entire system (in the software
  4557. sense) and am going to reinstall from the bottom up, rebooting each
  4558. time with MuGA to try and have a clean system.
  4559. > No. I compiled your source code in SAS/C (after changing to ANSI C, C++ has
  4560. > too many errors) and I recived two MuGA hits.
  4561.     is it not worth writing in c++ then? too buggy? i thought it was
  4562. supposed to be a lot better than ANSI C.
  4563. > > then i run it for the second time and my chip ram gets totally
  4564. > > defragmente; avail and the workbench bar say that i have about 1600k
  4565. > > left, but the largest chunk is about 30/40k!
  4566. > Change line:
  4567. > RectFill(gaRP,0,0,SCREENWIDTH,SCREENHEIGHT);
  4568. > RectFill(gaRP,0,0,SCREENWIDTH-1,SCREENHEIGHT-1);
  4569. > or to... nothing (bitmap was cleared by BltClear() couple lines above!)...
  4570. > and everything will be fine. Your program rendered outside a screen bitmap...
  4571.     oh my god, thank you very much. that's great. i would like to
  4572. ask you how you found that, but don't bother explaining right now. i'm
  4573. sure i can sort it out once i rebuild my computer.
  4574. > I really would like see that you will use modern double buffering methods ;).
  4575. > You have A500 with AmigaOS v1.3 or similar? ;)
  4576. grr! >:o] no, i have a A1200 with a 030 (+MMU) + 8 meg fast (soon to be
  4577. +64 meg fast). i only have OS 3.0, though...
  4578. (MEANING_TO_GET_3_1_ROMS=TRUE)
  4579.     i'm working on the new doublebuffer methods... well... i will be
  4580. as soon as i've finished sorting out my computer.
  4581. thanks ever so much... will write back with progess (or just more
  4582. problems probably)
  4583. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4584. eGroups is now Yahoo! Groups
  4585. Click here for more details
  4586. http://click.egroups.com/1/11231/0/_/451227/_/982248772/
  4587. ---------------------------------------------------------------------_->
  4588. @ENDNODE
  4589. @NODE "Mail_143" " Re: imagepool.library & Transparency "
  4590. Date: 02-15-01 23:38:46
  4591. Subject: @{b}Re: imagepool.library & Transparency@{ub}
  4592. David Arbuthnot wrote:
  4593. > Allan Odgaard wrote:
  4594. > > You need a picture.datatype V43+ for it to work. And proper 
  4595. > > decoders as well (some ILBM and PNG decoders are broken).
  4596. > Where can i get one as i've only got an AGA system and the CGX one 
  4597. > doesn't support AGA (as i'm sure you know). If there isn't one 
  4598. > available then what other way is there of support transparency on 
  4599. > AGA systems ???
  4600. Unless you have AOS35+ use that picture datatype or get the picture 
  4601. datatype from the picasso gfx card distribution.
  4602. Shinda
  4603. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4604. eGroups is now Yahoo! Groups
  4605. Click here for more details
  4606. http://click.egroups.com/1/11231/0/_/451227/_/982276765/
  4607. ---------------------------------------------------------------------_->
  4608. @ENDNODE
  4609. @NODE "Mail_144" " Re: chip memory defragmentation "
  4610. Date: 02-16-01 00:57:26
  4611. Subject: @{b}Re: chip memory defragmentation@{ub}
  4612. Czesc William!
  4613. Dnia 15-Feb-01, William Robinson napisa
  4614. >     yeah, i'm using sasushi (or whatever it's called). when i do get
  4615. Sashimi :).
  4616. > it working though, i get a zillion hits when i boot up. i have tried
  4617. > removing the problem programs slowly but there's so many of them. and
  4618. > also i find that EdWord produces constant hits for the moment you load
  4619. > it up and whenever you edit it in anyway.
  4620. >     so, instead, i'm dismantling my entire system (in the software
  4621. > sense) and am going to reinstall from the bottom up, rebooting each
  4622. > time with MuGA to try and have a clean system.
  4623. Clean system is very important thing especially for programmer. I suggest you
  4624. to move SYS: directories to temporary one, then format partition and install
  4625. system, CD-ROM drivers, MMULib, MUI and AHI and other applications again.
  4626. >     is it not worth writing in c++ then? too buggy? i thought it was
  4627. > supposed to be a lot better than ANSI C.
  4628. I meant that compiler which you're using, compile this source code without
  4629. problems, but when I tried to compile it under SAS/C I had too much bugs and
  4630. fixing them would take much much more time for me than changing it to ANSI C.
  4631. Anyway, what is sense of using C++ only for exception handling? As far as I
  4632. know C++ compilers are slower than ANSI C one...
  4633. >     oh my god, thank you very much. that's great. i would like to
  4634. > ask you how you found that, but don't bother explaining right now. i'm
  4635. > sure i can sort it out once i rebuild my computer.
  4636. This was a normal programming technique: remark part of source and see if bugs
  4637. still appears (in that case, is MuGA report hits), if yes remark another part
  4638. and reset computer...
  4639. Regards!
  4640. Can your ImageFX paint like bitmap painters?
  4641. Download: gfx/ifx/REDFiX.lha, ftp.novadesign.com
  4642. Przemyslaw 'SENSEI' Gruchala
  4643. code/gfx2d/gfx3d/webmaster
  4644. Amiga 1200
  4645. Apollo 1240/33 MHz, 18 MB RAM, BTC 33.6 bps
  4646. HDD 3.2 GB, HDD 520 MB, CD x12
  4647.         Internet szansa dla malego i sredniego biznesu.
  4648. Przyjdz i przekonaj sie o tym na Seminarium technicznym "NetWorld"
  4649.      Badz czujny i wlacz sie w nurt gospodarki internetowej.
  4650.          Kliknij: http://www.networld.com.pl/seminaria           
  4651. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4652. eGroups is now Yahoo! Groups
  4653. Click here for more details
  4654. http://click.egroups.com/1/11231/0/_/451227/_/982330432/
  4655. ---------------------------------------------------------------------_->
  4656. @ENDNODE
  4657. @NODE "Mail_145" " Re: Again clipping graphics output "
  4658. Date: 02-16-01 01:07:20
  4659. Subject: @{b}Re: Again clipping graphics output@{ub}
  4660. Hello Sensei
  4661. On 15-Feb-01, you wrote:
  4662. S>> I've tried to clip graphics output to the rastport with 
  4663. S>> layers.library help. This works perfectly on AGA, but seems
  4664. S>> to cause problems under CGX and Picasso96 on graphics boards.
  4665. S> Could you precise what is going on under CGFX and P96? I used this method
  4666. Sorry, but I do not own a GFX board. My testers wrote me about this.
  4667. All of them wrote that the cursor became "jerky".
  4668. S> (or hmmm, I was forced to use it by AmigaOS...) in my BOOPSI scale.gadget
  4669. S> and it works fine everywhere... Maybe working example source code will
  4670. S> help us a bit... ?
  4671. The problem is, that a project is rather big and the source is 
  4672. messy, so I think it is a bad idea. I could describe the procedure.
  4673. I draw a lot of realy changed graphics to a "Shadow Layer", which
  4674. is made from a custom bitmap, and then blit the data to the 
  4675. "Workspace Layer", also made from a custom bitmap. Then I draw a 
  4676. bit more graphics in it, and finally blit the result to my windows
  4677. rastport.
  4678. S>> Is there any ability to do the same without layers.library?
  4679. S> Yes. You can calculate coordinates so they will fit into bitmap... It
  4680. S> could be a problem if you would like to use, for instance, Text()
  4681. S> function...
  4682. This problem stops me from using this method.
  4683. S> Instead calculating coordinates you could allocate bitmap with enought
  4684. S> size to hold whole image (you must calculate exactly how big will be this
  4685. S> image, if you make mistake of 1 pixel computer will crash...), render to
  4686. S> it and blit from this bitmap to destination rastport. This is a more
  4687. S> memory consuming method...
  4688. The problem in this case is, that I do not know, and can't 
  4689. calculate the size of future graphics.
  4690. Regards
  4691. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4692. eGroups is now Yahoo! Groups
  4693. Click here for more details
  4694. http://click.egroups.com/1/11231/0/_/451227/_/982282356/
  4695. ---------------------------------------------------------------------_->
  4696. @ENDNODE
  4697. @NODE "Mail_146" " Screens and IDCMP "
  4698. Date: 02-16-01 18:32:34
  4699. Subject: @{b}Screens and IDCMP@{ub}
  4700. Hello,
  4701. I'm doing some experiments with the iff.library to open a iff file on a
  4702. screen the screen.
  4703. Now i have some questions, would be nice if someone could help me with this
  4704. ones:
  4705. * I wanted to add something so the user could close the app. I started with
  4706. some messageloop, that i copied from some sources. But then i found out,
  4707. they where meant for windows, then i searched the Screen-struct and i
  4708. didn't find the UserPort. Problemo :).  So the q. is: can you make a screen
  4709. work with IDCMP? And how to do it. 
  4710. I was thinking to add a window to it that's as big as the screen and render
  4711. the pic to the Window's Rastport. Or maybe open a very little one you
  4712. couldn't see???
  4713. * My solution now to do this: if(!(*(UBYTE *)0xbfe001 & 0x40))   // Check
  4714. leftmouse
  4715.                                 done = TRUE;
  4716.     I found this in some old source, it also mentioned that it was a really
  4717. nasty way of doing :) So probably i shouldn't use. But can someone explain
  4718. me how it works and how has someone found out that it works? It does
  4719. directly something with the interrupts or what?
  4720. * The pic i'm trying to display is a 320x200x8 ilbm. Now i open a screen a
  4721. screen using SA_DisplayID, 0x00021000. This is the PAL-Lowres ID (this one
  4722. is 320x256x8), but i also use CGFX and want to make the program work on my
  4723. CV3D. I found out that the DisplayID for a 320x240x8 CGFX screen would be
  4724. 0x40d2000. I tried this one but i doesn't work, only a black screen that
  4725. quits when i click with my lefty.... Do i need to do something special when
  4726. working with CGFX? 
  4727. * When you open a a Screen using DisplayID, do you still need to give the
  4728. Width and Height params to the Screen struct and if so, why? I thaught that
  4729. the DisplayID contained all that info???
  4730. Sorry for my bad English and the lot of questions, I just started again
  4731. doing some programming on the AmigaOS.
  4732. Groeten,
  4733. Joris Kempen - webmaster
  4734. visit www.detrekkers.com
  4735. Politicians should read science fiction, not westerns and detective
  4736. stories.
  4737. -- Arthur C. Clarke
  4738. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4739. eGroups is now Yahoo! Groups
  4740. Click here for more details
  4741. http://click.egroups.com/1/11231/0/_/451227/_/982344944/
  4742. ---------------------------------------------------------------------_->
  4743. @ENDNODE
  4744. @NODE "Mail_147" " Re: Screens and IDCMP "
  4745. Date: 02-16-01 19:18:59
  4746. Subject: @{b}Re: Screens and IDCMP@{ub}
  4747. On 16-Feb-01, Joris Kempen wrote:
  4748. > Hello,
  4749. > So the q. is: can you make a screen
  4750. > work with IDCMP? And how to do it. I was thinking to add a window to it
  4751. > that's as big as the screen and render the pic to the Window's Rastport.
  4752. > Or maybe open a very little one you couldn't see???
  4753. Open a window as big as your screen with the WA_Borderless tag and draw the 
  4754. pic to the window but make sure you disabled all the system gadgets too 
  4755. (close,resize,dragbaretc...)
  4756. > * My solution now to do this: if(!(*(UBYTE *)0xbfe001 & 0x40))   // Check
  4757. > leftmouse
  4758. >                                done = TRUE;
  4759. >    I found this in some old source, it also mentioned that it was a
  4760. > really nasty way of doing :) So probably i shouldn't use. But can someone
  4761. > explain me how it works and how has someone found out that it works? It
  4762. > does directly something with the interrupts or what?
  4763. That code bypasses the OS and checks the register at address 0xbfe001 
  4764. directly (can't remember which one right now)
  4765. > * When you open a a Screen using DisplayID, do you still need to give the
  4766. > Width and Height params to the Screen struct and if so, why? I thaught
  4767. > that the DisplayID contained all that info???
  4768. The display id describes the min & max dimensions of the screen, the depth
  4769. and some other stuff. If you don't pass SA_Width/SA_Height during your call
  4770. to OpenScreenTags() (or whatever you use) SA_Width is set to STDSCREENWIDTH
  4771. and SA_Height is set to STDSCREENHEIGHT (both defined in
  4772. intuition/screens.h)
  4773. > Sorry for my bad English and the lot of questions, I just started again
  4774. > doing some programming on the AmigaOS.
  4775. Don't apologise for your bad english (most english people speak and write
  4776. bad english, even me)
  4777. Regards
  4778. Dave 'Trebor' Arbuthnot
  4779. A1200/Apollo 1240/25Mhz/16mb FastRam/48x
  4780. CD-Rom/56k Modem/15Khz Sonica Monitor
  4781. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4782. eGroups is now Yahoo! Groups
  4783. Click here for more details
  4784. http://click.egroups.com/1/11231/0/_/451227/_/982349047/
  4785. ---------------------------------------------------------------------_->
  4786. @ENDNODE
  4787. @NODE "Mail_148" " Re: Help with gcc "
  4788. Date: 02-16-01 20:13:35
  4789. Subject: @{b}Re: Help with gcc@{ub}
  4790. > The one on aminet in the geekgadgets dir is very old, get gcc from 
  4791. > geekgadgets.org. This will solve a lot of problems. Also there is a 
  4792. > guide to what is needed for standard setup. You may need some files 
  4793. > from the alpha directory.
  4794. I' ve been to geekgadgets.org and looked around both the website and
  4795. ftp server but can't find gcc anywhere. I looked in every directory
  4796. apart from the source directory but couldn't see gcc. I found some
  4797. links of the ftp site to something called lcc but none of them worked.
  4798. Where on geekgadgets should I be looking for the latest Amiga version
  4799. of gcc (the one I downloaded from Aminet in dev/gcc was version
  4800. 2.7.0)?
  4801. Donald
  4802.        Member of GAUG
  4803.   Glasgow Amiga Users Group
  4804.   *-Join our mailing list-*
  4805.   gaug-subscribe@onelist.com
  4806. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4807. eGroups is now Yahoo! Groups
  4808. Click here for more details
  4809. http://click.egroups.com/1/11231/0/_/451227/_/982350817/
  4810. ---------------------------------------------------------------------_->
  4811. @ENDNODE
  4812. @NODE "Mail_149" " Re: Help with gcc "
  4813. Date: 02-16-01 21:23:28
  4814. Subject: @{b}Re: Help with gcc@{ub}
  4815. Donald wrote:
  4816. > I' ve been to geekgadgets.org and looked around both the website and
  4817. > ftp server but can't find gcc anywhere. I looked in every directory
  4818. > apart from the source directory but couldn't see gcc. I found some
  4819. > links of the ftp site to something called lcc but none of them 
  4820. > worked.
  4821. Look in the alpha snapshots(there is 2.95.1) the directory is
  4822. ftp://ftp.geekgadgets.org/pub/geekgadgets/amiga/m68k/alpha/misc/
  4823. or from current snapshot there is egcs which is a spin off of gcc.
  4824. Shinda
  4825. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4826. eGroups is now Yahoo! Groups
  4827. Click here for more details
  4828. http://click.egroups.com/1/11231/0/_/451227/_/982355015/
  4829. ---------------------------------------------------------------------_->
  4830. @ENDNODE
  4831. @NODE "Mail_150" " Re: Screens and IDCMP "
  4832. Date: 02-16-01 22:42:10
  4833. Subject: @{b}Re: Screens and IDCMP@{ub}
  4834. Hello Joris
  4835. On 16-Hel-01, you wrote:
  4836. JK> * I wanted to add something so the user could close the app. I started
  4837. JK> with some messageloop, that i copied from some sources. But then i found
  4838. JK> out, they where meant for windows, then i searched the Screen-struct and
  4839. JK> i didn't find the UserPort. Problemo :). So the q. is: can you make a
  4840. JK> screen work with IDCMP? And how to do it. I was thinking to add a window
  4841. JK> to it that's as big as the screen and render the pic to the Window's
  4842. JK> Rastport. Or maybe open a very little one you couldn't see???
  4843. Just open borderless backdrop window. Make it slightly smaller than your
  4844. screen so that screen title becames visible.
  4845. JK> * My solution now to do this: if(!(*(UBYTE *)0xbfe001 & 0x40)) // Check
  4846. JK> leftmouse
  4847. JK>                                done = TRUE;
  4848. JK>    I found this in some old source, it also mentioned that it was a
  4849. JK> really nasty way of doing :) So probably i shouldn't use. But can
  4850. JK> someone explain me how it works and how has someone found out that it
  4851. JK> works? It does directly something with the interrupts or what?
  4852. It is reading directly hardware register. Very bad if you have serial mouse
  4853. or your mouse is connected to the second port.
  4854. JK> * The pic i'm trying to display is a 320x200x8 ilbm. Now i open a screen
  4855. JK> a screen using SA_DisplayID, 0x00021000. This is the PAL-Lowres ID (this
  4856. JK> one is 320x256x8), but i also use CGFX and want to make the program work
  4857. JK> on my CV3D. I found out that the DisplayID for a 320x240x8 CGFX screen
  4858. JK> would be 0x40d2000. I tried this one but i doesn't work, only a black
  4859. JK> screen that quits when i click with my lefty.... Do i need to do
  4860. JK> something special when working with CGFX?
  4861. FYI on my Amiga the display for 320x240x8 CGX screen is 0x40c20001.
  4862. This means: there aren't static IDs for screens. Instead define some
  4863. requirements:
  4864. SA_Width,320
  4865. SA_Height,240
  4866. SA_Depth,8
  4867. and OS chooses the DisplayID for you.
  4868. Or you can call BestModeIDA() as well.
  4869. JK> * When you open a a Screen using DisplayID, do you still need to give
  4870. JK> the Width and Height params to the Screen struct and if so, why? I
  4871. JK> thaught that the DisplayID contained all that info???
  4872. DisplayID defines resolution, but doesn't define the size of screen.
  4873. E.g. you can have 160x120 PAL-Lowres screen. And width/height of DisplayID
  4874. is user configurable.
  4875. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4876. eGroups is now Yahoo! Groups
  4877. Click here for more details
  4878. http://click.egroups.com/1/11231/0/_/451227/_/982360542/
  4879. ---------------------------------------------------------------------_->
  4880. @ENDNODE
  4881. @NODE "Mail_151" " Re: Again clipping graphics output "
  4882. Date: 02-17-01 14:38:59
  4883. Subject: @{b}Re: Again clipping graphics output@{ub}
  4884. Hello Serge,
  4885. [...]
  4886. > Sorry for bothering you again, but you haven't answered in the 
  4887. > list and I thought you've missed it. Where could I get this 
  4888. > library? Thanks in advance.
  4889. I sent a private reply to Steven Solie, because he wrote me privately
  4890. (and I couldn't recall who originally asked the question, thus I thought
  4891. I'd already answered).
  4892. The letter I sent Steven simply said:
  4893. | I don't have my mail archive, so I can't tell you.
  4894. | Either have a look at the MUI mailinglist archive (search e.g. for
  4895. | "clipping, graphics, custom class"), the author of the package is
  4896. | named Greg, though he's from Poland so it's not spelled that way.
  4897. | If this fails, you could send a letter to the MUI list, and he'll
  4898. | probably respond.
  4899. Kind regards Allan
  4900. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4901. eGroups is now Yahoo! Groups
  4902. Click here for more details
  4903. http://click.egroups.com/1/11231/0/_/451227/_/982418800/
  4904. ---------------------------------------------------------------------_->
  4905. @ENDNODE
  4906. @NODE "Mail_152" " bsd socket library "
  4907. Date: 02-17-01 17:30:27
  4908. Subject: @{b}bsd socket library@{ub}
  4909. Hello there,
  4910. I was wondering whether the bsdsocket library uses buffered I/O.
  4911. Thanks, Andrew
  4912. _________________________________________________________________________
  4913. Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
  4914. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4915. eGroups is now Yahoo! Groups
  4916. Click here for more details
  4917. http://click.egroups.com/1/11231/0/_/451227/_/982427429/
  4918. ---------------------------------------------------------------------_->
  4919. @ENDNODE
  4920. @NODE "Mail_153" " "#define" for code "
  4921. Date: 02-17-01 20:00:58
  4922. Subject: @{b}"#define" for code@{ub}
  4923. Hi Everybody,
  4924. Ok, I know that using #define var_name xxx replaces all the
  4925. "var_name"s in the code with xxx before compiling (so it's faster then
  4926. using a variable), and I /think/ you can do it with piece of code
  4927. like:
  4928. #define code[a,b,c]{a=b*c+a}
  4929. so that if you had the line:
  4930. code[var1,var2,6]
  4931. the compiler would convert that to 
  4932. var1=var2*6+var1  
  4933. before compiling (thus being faster thensubroutines).
  4934. The only problem is I don't know the syntax for the define, and that
  4935. example there didn't work.
  4936. See ya :)
  4937.        Manta Soft  -  Amiga programming & webpage designing
  4938.          http://mantasoft.tripod.com/       ICQ: 21829166
  4939.       Homepage updated 22/05/00 - New game: Pictris released
  4940.   - ------------------- Quote of the day: -------------------- -
  4941. Capt'n!  The spellchecker kinna take this abuse!
  4942. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4943. eGroups is now Yahoo! Groups
  4944. Click here for more details
  4945. http://click.egroups.com/1/11231/0/_/451227/_/982436666/
  4946. ---------------------------------------------------------------------_->
  4947. @ENDNODE
  4948. @NODE "Mail_154" " Re: bsd socket library "
  4949. Date: 02-17-01 20:11:06
  4950. Subject: @{b}Re: bsd socket library@{ub}
  4951. Hello Andrew
  4952. On 17-Feb-01, you wrote:
  4953. > I was wondering whether the bsdsocket library uses buffered I/O.
  4954. I'm not sure what you mean by this exactly, but I assume you're  asking  if
  4955. you  need to flush() or setvbuf() the socket file handle. Well I never have
  4956. and have never run across any problems.
  4957. You can however, set the output and input  buffers  with  the  setsockopt()
  4958. function  but  this is something else entirely and is a network layer thing
  4959. rather than a feature of the socket interface.
  4960. Regards
  4961. Steve
  4962. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  4963. eGroups is now Yahoo! Groups
  4964. Click here for more details
  4965. http://click.egroups.com/1/11231/0/_/451227/_/982440749/
  4966. ---------------------------------------------------------------------_->
  4967. @ENDNODE
  4968. @NODE "Mail_155" " Re: Again clipping graphics output "
  4969. Date: 02-17-01 20:39:55
  4970. Subject: @{b}Re: Again clipping graphics output@{ub}
  4971. Czesc Serge!
  4972. Dnia 16-Feb-01, Serge Tumanyan napisa
  4973. > Sorry, but I do not own a GFX board. My testers wrote me about this.
  4974. > All of them wrote that the cursor became "jerky".
  4975. Doesn't this mean that memory was corrupted? Do you suggested them to use
  4976. debug utilities like MuGA to check this?
  4977. > The problem is, that a project is rather big and the source is 
  4978. > messy, so I think it is a bad idea. I could describe the procedure.
  4979. Description doesn't help a lot, usually...
  4980. > I draw a lot of realy changed graphics to a "Shadow Layer", which
  4981. > is made from a custom bitmap, and then blit the data to the 
  4982. > "Workspace Layer", also made from a custom bitmap. Then I draw a 
  4983. > bit more graphics in it, and finally blit the result to my windows
  4984. > rastport.
  4985. These are normal things to do when you must render to custom bitmap... It
  4986. doesn't give me idea how you implemented this rendering, which functions
  4987. you're using etc.
  4988. >>> Is there any ability to do the same without layers.library?
  4989. >> Yes. You can calculate coordinates so they will fit into bitmap... It
  4990. >> could be a problem if you would like to use, for instance, Text()
  4991. >> function...
  4992. > This problem stops me from using this method.
  4993. You could create another bitmap for text only (with TextLength() or better
  4994. with V36+ function to calculate width of the text), and render text into
  4995. without clipping and then blit that bitmap to your main bitmap... You could
  4996. even render this part of text which is "visible" on main bitmap using normal
  4997. method and the rest (if there is the rest) which is partially visible using
  4998. another bitmap as I described above... (it would be memory saving method)
  4999. > The problem in this case is, that I do not know, and can't 
  5000. > calculate the size of future graphics.
  5001. How it's possible? If you can render graphics you must know where to put it,
  5002. right? If graphics is rendered by external modules couldn't you create
  5003. function which ask them how big will be graphics rendered by them (something
  5004. like MUIM_AskMinMax method in MUI) ?
  5005. Regards!
  5006. Can your ImageFX paint like bitmap painters?
  5007. Download: gfx/ifx/REDFiX.lha, ftp.novadesign.com
  5008. Przemyslaw 'SENSEI' Gruchala
  5009. code/gfx2d/gfx3d/webmaster
  5010. Amiga 1200
  5011. Apollo 1240/33 MHz, 18 MB RAM, BTC 33.6 bps
  5012. HDD 3.2 GB, HDD 520 MB, CD x12
  5013.         Internet szansa dla malego i sredniego biznesu.
  5014. Przyjdz i przekonaj sie o tym na Seminarium technicznym "NetWorld"
  5015.      Badz czujny i wlacz sie w nurt gospodarki internetowej.
  5016.          Kliknij: http://www.networld.com.pl/seminaria           
  5017. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5018. eGroups is now Yahoo! Groups
  5019. Click here for more details
  5020. http://click.egroups.com/1/11231/0/_/451227/_/982442989/
  5021. ---------------------------------------------------------------------_->
  5022. @ENDNODE
  5023. @NODE "Mail_156" " Re: Again clipping graphics output "
  5024. Date: 02-17-01 23:47:02
  5025. Subject: @{b}Re: Again clipping graphics output@{ub}
  5026. Hello Sensei
  5027. On 17-Feb-01, you wrote:
  5028. S>> Sorry, but I do not own a GFX board. My testers wrote me about this.
  5029. S>> All of them wrote that the cursor became "jerky".
  5030. S> Doesn't this mean that memory was corrupted? Do you suggested them to use
  5031. S> debug utilities like MuGA to check this?
  5032. Could this cause a cursor jerking on CGX and Picasso96? While 
  5033. not causing the same on AGA? There is a lot of enforcer hits 
  5034. there now, since it is really a very early alpha version.
  5035. S>> The problem is, that a project is rather big and the source is 
  5036. S>> messy, so I think it is a bad idea. I could describe the procedure.
  5037. S> Description doesn't help a lot, usually...
  5038. S>> I draw a lot of realy changed graphics to a "Shadow Layer", which
  5039. S>> is made from a custom bitmap, and then blit the data to the 
  5040. S>> "Workspace Layer", also made from a custom bitmap. Then I draw a 
  5041. S>> bit more graphics in it, and finally blit the result to my windows
  5042. S>> rastport.
  5043. S> These are normal things to do when you must render to custom bitmap... It
  5044. S> doesn't give me idea how you implemented this rendering, which functions
  5045. S> you're using etc.
  5046. I use simple graphics library functions: Move, Draw, RectFill, Text.
  5047. S>>>> Is there any ability to do the same without layers.library?
  5048. S>>> Yes. You can calculate coordinates so they will fit into bitmap... It
  5049. S>>> could be a problem if you would like to use, for instance, Text()
  5050. S>>> function...
  5051. S>> This problem stops me from using this method.
  5052. S> You could create another bitmap for text only (with TextLength() or
  5053. S> better with V36+ function to calculate width of the text), and render
  5054. S> text into without clipping and then blit that bitmap to your main
  5055. S> bitmap... You could even render this part of text which is "visible" on
  5056. S> main bitmap using normal method and the rest (if there is the rest) which
  5057. S> is partially visible using another bitmap as I described above... (it
  5058. S> would be memory saving method)
  5059. S>> The problem in this case is, that I do not know, and can't 
  5060. S>> calculate the size of future graphics.
  5061. S> How it's possible? If you can render graphics you must know where to put
  5062. S> it, right? If graphics is rendered by external modules couldn't you
  5063. S> create function which ask them how big will be graphics rendered by them
  5064. S> (something like MUIM_AskMinMax method in MUI) ?
  5065. I'll think about it. Thanks.
  5066. Regards
  5067. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5068. eGroups is now Yahoo! Groups
  5069. Click here for more details
  5070. http://click.egroups.com/1/11231/0/_/451227/_/982449979/
  5071. ---------------------------------------------------------------------_->
  5072. @ENDNODE
  5073. @NODE "Mail_157" " Re: Re: bsd socket library "
  5074. Date: 02-18-01 00:49:25
  5075. Subject: @{b}Re: Re: bsd socket library@{ub}
  5076. Hi Stephen,
  5077. >I'm not sure what you mean by this exactly, but I assume you're
  5078. I am writing an update utility which will get a file using a custom protocol 
  5079. from a custom server - what I want to do is send the request, and have my 
  5080. single-task program do some other things.
  5081. Inbetween the utility doing other things it'll call recv() now & again to 
  5082. pick up any data waiting at the socket.
  5083. I was wondering whether data is actually physically transferred from the 
  5084. network to my machine during "the other things", in which case it'd already 
  5085. be there for when I call recv().  Or, if data is moved from the network only 
  5086. during the recv() call.
  5087. I hope this makes sense!
  5088. Thanks, Andrew
  5089. _________________________________________________________________________
  5090. Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
  5091. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5092. eGroups is now Yahoo! Groups
  5093. Click here for more details
  5094. http://click.egroups.com/1/11231/0/_/451227/_/982453767/
  5095. ---------------------------------------------------------------------_->
  5096. @ENDNODE
  5097. @NODE "Mail_158" " Re: "#define" for code "
  5098. Date: 02-18-01 01:05:06
  5099. Subject: @{b}Re: "#define" for code@{ub}
  5100. Hi Andrew,
  5101. >From: Andrew Crowe <andrewcrowe@enterprise.net>
  5102. >#define code[a,b,c]{a=b*c+a}
  5103. >so that if you had the line:
  5104. >code[var1,var2,6]
  5105. >the compiler would convert that to
  5106. >var1=var2*6+var1
  5107. >before compiling (thus being faster thensubroutines).
  5108. >The only problem is I don't know the syntax for the define, and that
  5109. >example there didn't work.
  5110. You need to use curly brackets instead of square ones:
  5111. #define code(a,b,c) (b*c+a)
  5112. The "return" value of this would be the result of the expression, so to 
  5113. assign it to 'a', you could call it like this:
  5114. int x,y,z;
  5115. x=code(x,y,z);
  5116. If you're interested in speed you could also use an inline function:
  5117. inline int code(int a, int b, int c)
  5118.    return b*c+a;
  5119. This basically has the same effect as the macro, the code is inserted at 
  5120. every point it is called, rather than a function call to it.
  5121. Thanks, Andrew
  5122. _________________________________________________________________________
  5123. Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
  5124. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5125. eGroups is now Yahoo! Groups
  5126. Click here for more details
  5127. http://click.egroups.com/1/11231/0/_/451227/_/982454708/
  5128. ---------------------------------------------------------------------_->
  5129. @ENDNODE
  5130. @NODE "Mail_159" " Re: "#define" for code "
  5131. Date: 02-18-01 01:33:33
  5132. Subject: @{b}Re: "#define" for code@{ub}
  5133. To:                 amiga-c@yahoogroups.com
  5134. From:               Andrew Crowe <andrewcrowe@enterprise.net>
  5135. Date sent:          Sat, 17 Feb 2001 19:00:58 +0000
  5136. Send reply to:      amiga-c@yahoogroups.com
  5137. Subject:            [amiga-c] "#define" for code
  5138. > Hi Everybody,
  5139. > Ok, I know that using #define var_name xxx replaces all the
  5140. > "var_name"s in the code with xxx before compiling (so it's faster then
  5141. > using a variable), and I /think/ you can do it with piece of code
  5142. > like:
  5143. > #define code[a,b,c]{a=b*c+a}
  5144. > so that if you had the line:
  5145. > code[var1,var2,6]
  5146. > the compiler would convert that to 
  5147. > var1=var2*6+var1  
  5148. > before compiling (thus being faster thensubroutines).
  5149. > The only problem is I don't know the syntax for the define, and that
  5150. > example there didn't work.
  5151. #define MYMACRO(zza,zzb,zzc) {(zza)=(zzb)*(zzc)+(zza);}
  5152. would do the job described above. The reason I've used zza, zzb and 
  5153. the like is because I'm paranoid. :P Something like a and b and so on 
  5154. is easy to put in the code in the macro where you don't intend to, 
  5155. whereas zza and zzb etc are less likely to appear in any code you'd 
  5156. place in the macro definition and so don't accidentally do some 
  5157. replacement where it wasn't intended.
  5158. The parenthesis around the terms is to prevent replacement on things 
  5159. like:
  5160. MYMACRO(myvar,another+5,0); doing unexplained things. Once expanded, 
  5161. this becomes...
  5162. (myvar)=(another+5)*0 + (myvar) ... rather than...
  5163. myvar=another + 5 * 0 + myvar;
  5164. which if I remember C's precedence rules correctly (which I'm not 
  5165. confident about) causes a different result to that intended.
  5166. The problem is that there are cases where this will behave strangely 
  5167. compared to a function (for instance, passing an argument with side 
  5168. effects (like foo++) or doing something like putting a function in 
  5169. place of an argument which appears twice in the macro). As long as 
  5170. you avoid these cases it'll work correctly.
  5171. It's a good idea to use some convention to identify it as a macro so 
  5172. that you know just by looking at it the things you need to avoid. The 
  5173. common convention is to use all capitals... but not everyone likes it.
  5174. Ian Woods
  5175. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5176. eGroups is now Yahoo! Groups
  5177. Click here for more details
  5178. http://click.egroups.com/1/11231/0/_/451227/_/982456140/
  5179. ---------------------------------------------------------------------_->
  5180. @ENDNODE
  5181. @NODE "Mail_160" " Re: bsd socket library "
  5182. Date: 02-18-01 02:01:08
  5183. Subject: @{b}Re: bsd socket library@{ub}
  5184. Hello Andrew
  5185. On 18-Feb-01, you wrote:
  5186. > I am writing an update utility which will get a file using a custom
  5187. > protocol from a custom server - what I want to do is send the request, and
  5188. > have my single-task program do some other things.
  5189. > Inbetween the utility doing other things it'll call recv() now & again to 
  5190. > pick up any data waiting at the socket.
  5191. A better way of doing this would be to spawn a sub process that listens for
  5192. network  traffic  at the appointed socket. It would signal the main task as
  5193. required.
  5194. > I was wondering whether data is actually physically transferred from the
  5195. > network to my machine during "the other things", in which case it'd
  5196. > already be there for when I call recv(). Or, if data is moved from the
  5197. > network only during the recv() call.
  5198. > I hope this makes sense!
  5199. The data will be sitting in a buffer somewhere waiting for the  the  recv()
  5200. (or  read())  call.
  5201. I mentioned being able to alter the buffer size with  setsockopt()  in  the
  5202. previous  reply,  this sounds like it might be important for your purposes.
  5203. Look up SO_RCVBUF in the autodocs or whatever text book  you  fancy  for  a
  5204. fuller  answer; but briefly, each and every TCP socket has a send a recieve
  5205. buffer, and every UDP socket has a recieve buffer (not a send). The default
  5206. sizes should suffice.
  5207. As a matter of interest only (you won't need  to  fiddle  with  this),  the
  5208. default  size  of  the  recieve buffer is dictated by the TCP stack. If you
  5209. examine your stack with the sysctl program then you'll see what the default
  5210. size for each buffer is. For example, with MiamiDX, run
  5211.                 MiamiSysctl -a
  5212.                 
  5213. and you'll see a line for tcp and another for udp
  5214.                 net.inet.tcp.recvspace = 16384
  5215.                 net.inet.udp.recvspace = 41600
  5216. Steve
  5217. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5218. eGroups is now Yahoo! Groups
  5219. Click here for more details
  5220. http://click.egroups.com/1/11231/0/_/451227/_/982461754/
  5221. ---------------------------------------------------------------------_->
  5222. @ENDNODE
  5223. @NODE "Mail_161" " RtgMaster Window problem. "
  5224. Date: 02-18-01 12:21:01
  5225. Subject: @{b}RtgMaster Window problem.@{ub}
  5226. Greetings.
  5227. I am trying to attach a window to a RtgMaster screen but I can't seem 
  5228. to find the screen handle to put in the OpenWindowTagList command. 
  5229. Does anyone know where I can find this handle?
  5230. Thanks in advance.
  5231. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5232. eGroups is now Yahoo! Groups
  5233. Click here for more details
  5234. http://click.egroups.com/1/11231/0/_/451227/_/982495266/
  5235. ---------------------------------------------------------------------_->
  5236. @ENDNODE
  5237. @NODE "Mail_162" " Inline ASM in StormC 3 "
  5238. Date: 02-18-01 15:29:21
  5239. Subject: @{b}Inline ASM in StormC 3@{ub}
  5240. Hi Everybody,
  5241. How can I have inline ASM functions in Storm3, without needing an
  5242. external object.
  5243. I've been recomended to change my existing copy routine
  5244.    b[0]=fx[b[0]<<8 + a[0]]
  5245. to this "faster" asm routine:
  5246.    move.w (a1),d6
  5247.    move.b (a2)+,d6
  5248.    move.b (a5,d6.l),(a1)+
  5249. But I'm not sure how have that withough needing to create a seperate
  5250. object, which'd be inconvenient with all the loop unrolling I've done
  5251. to the code.
  5252. Either that, or is there anything I could do to my C code to make it
  5253. faster, as at the moment it's quite slow
  5254. See ya :)
  5255.        Manta Soft  -  Amiga programming & webpage designing
  5256.          http://mantasoft.tripod.com/       ICQ: 21829166
  5257.       Homepage updated 22/05/00 - New game: Pictris released
  5258.   - ------------------- Quote of the day: -------------------- -
  5259. Q: What is brown and sticky?
  5260. A: A stick.
  5261. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5262. eGroups is now Yahoo! Groups
  5263. Click here for more details
  5264. http://click.egroups.com/1/11231/0/_/451227/_/982506566/
  5265. ---------------------------------------------------------------------_->
  5266. @ENDNODE
  5267. @NODE "Mail_163" " Re: Again clipping graphics output "
  5268. Date: 02-18-01 23:26:12
  5269. Subject: @{b}Re: Again clipping graphics output@{ub}
  5270. Hello Serge,
  5271. >> > [...]
  5272. >> Doesn't this mean that memory was corrupted? Do you suggested them
  5273. >> debug utilities like MuGA to check this?
  5274. > Could this cause a cursor jerking on CGX and Picasso96? While 
  5275. > not causing the same on AGA? [...]
  5276. If the problem is only present on cgx high-colour screens then it's
  5277. because you don't set BMF_MINPLANES when allocating the off-screen
  5278. bitmap.
  5279. And yes, cybergraphics sucks!!!
  5280. >>> The problem in this case is, that I do not know, and can't 
  5281. >>> calculate the size of future graphics.
  5282. hmm... I'm quite sceptical here ;-)
  5283. Kind regards Allan
  5284. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5285. eGroups is now Yahoo! Groups
  5286. Click here for more details
  5287. http://click.egroups.com/1/11231/0/_/451227/_/982535410/
  5288. ---------------------------------------------------------------------_->
  5289. @ENDNODE
  5290. @NODE "Mail_164" " Re: "#define" for code "
  5291. Date: 02-18-01 23:27:39
  5292. Subject: @{b}Re: "#define" for code@{ub}
  5293. Hello Andrew,
  5294. > Ok, I know that using #define var_name xxx replaces all the
  5295. > "var_name"s in the code with xxx before compiling (so it's faster then
  5296. > using a variable), and I /think/ you can do it with piece of code
  5297. > like:
  5298. hmm... in theory it isn't really faster. But if the compiler sucks then
  5299. it may be in practice. But instead you should try to declare the
  5300. variable as 'const'.
  5301. Kind regards Allan
  5302. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5303. eGroups is now Yahoo! Groups
  5304. Click here for more details
  5305. http://click.egroups.com/1/11231/0/_/451227/_/982535410/
  5306. ---------------------------------------------------------------------_->
  5307. @ENDNODE
  5308. @NODE "Mail_165" " Re: Again clipping graphics output "
  5309. Date: 02-19-01 00:49:56
  5310. Subject: @{b}Re: Again clipping graphics output@{ub}
  5311. Hello Allan
  5312. On 19-Feb-01, you wrote:
  5313. AO>>>> [...]
  5314. AO>>> Doesn't this mean that memory was corrupted? Do you suggested them
  5315. AO>>> debug utilities like MuGA to check this?
  5316. AO>> Could this cause a cursor jerking on CGX and Picasso96? While 
  5317. AO>> not causing the same on AGA? [...]
  5318. AO> If the problem is only present on cgx high-colour screens then it's
  5319. AO> because you don't set BMF_MINPLANES when allocating the off-screen
  5320. AO> bitmap.
  5321. Could you describe this more precisely? The most interesting is
  5322. the fact that, according to my user bug reports, this began to
  5323. happen as soon as I began to use layers library.
  5324. AO> And yes, cybergraphics sucks!!!
  5325. And Picasso96 also? What software should they use on graphics boards
  5326. than?
  5327. AO>>>> The problem in this case is, that I do not know, and can't 
  5328. AO>>>> calculate the size of future graphics.
  5329. AO> hmm... I'm quite sceptical here ;-)
  5330. The user draws vector graphics, and can move it on his will. Any
  5331. scepticism left?
  5332. Regards
  5333. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5334. eGroups is now Yahoo! Groups
  5335. Click here for more details
  5336. http://click.egroups.com/1/11231/0/_/451227/_/982540281/
  5337. ---------------------------------------------------------------------_->
  5338. @ENDNODE
  5339. @NODE "Mail_166" " Re: Re: Again clipping graphics output "
  5340. Date: 02-19-01 02:54:35
  5341. Subject: @{b}Re: Re: Again clipping graphics output@{ub}
  5342. Czesc Serge!
  5343. Dnia 19-Lut-01, Serge Tumanyan napisa
  5344. >Could you describe this more precisely? The most interesting is
  5345. >the fact that, according to my user bug reports, this began to
  5346. >happen as soon as I began to use layers library.
  5347. And that is why I asked you for working part of source... ;) Without it I
  5348. cannot check if you implemented layers correctly...
  5349. >AO>>>> The problem in this case is, that I do not know, and can't 
  5350. >AO>>>> calculate the size of future graphics.
  5351. >AO> hmm... I'm quite sceptical here ;-)
  5352. >The user draws vector graphics, and can move it on his will. Any
  5353. >scepticism left?
  5354. Partially... ;) You can "remove" all lines, curves, rectangles, ellipses, text
  5355. which are fully invisible and then you'll have a lot less graphics to
  5356. render... Things like lines etc.  could be easily clipped... For example, if
  5357. you must render line from x0,y0 to x1,y1 you could do:
  5358. if( ( ( x0 < 0 ) && ( x1 < 0 ) ) || ( ( y0 < 0 ) && ( y1 < 0 ) ) || ( ( x0 >=
  5359. width ) && ( x1 >= width ) ) || ( ( y0 >= height ) && ( y1 >= height ) ) )
  5360.    // line is invisible. don't render.
  5361. else if( ( x0 >= 0 ) && ( y0 >= 0 ) && ( x0 < width ) && ( y0 < height ) && (
  5362. x1 >= 0 ) && ( y1 >= 0 ) && ( x1 < width ) && ( y1 < height ) )
  5363.    // line is visible. render without clipping.
  5364.    // line is partially visible. we clip it by hand (it's always faster then
  5365. layers.library but it'll become a problem if  you would like doing things
  5366. which you can do using InstallClipRegion()).
  5367. Do you know how to clip graphics by hand?
  5368. Regards!
  5369. Can your ImageFX paint like bitmap painters?
  5370. Download: gfx/ifx/REDFiX.lha, ftp.novadesign.com
  5371. Przemyslaw 'SENSEI' Gruchala
  5372. code/gfx2d/gfx3d/webmaster
  5373. Amiga 1200
  5374. Apollo 1240/33 MHz, 18 MB RAM, BTC 33.6 bps
  5375. HDD 3.2 GB, HDD 520 MB, CD x12
  5376. Prezentacja oferty i sprzedaz produktow Twojej firmy w Centrum e-biznesu
  5377.          teraz za niecala zlotowke dziennie!
  5378. KLIKNIJ I ZAMOW http://www.getin.pl/centrum/es_logon.asp
  5379. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5380. eGroups is now Yahoo! Groups
  5381. Click here for more details
  5382. http://click.egroups.com/1/11231/0/_/451227/_/982551321/
  5383. ---------------------------------------------------------------------_->
  5384. @ENDNODE
  5385. @NODE "Mail_167" " iff.library "
  5386. Date: 02-19-01 13:47:39
  5387. Subject: @{b}iff.library@{ub}
  5388. hello,
  5389. I'm using stormC compiler from amiga dev CD 2.1.  
  5390. I try to display iff picture with function in iff.library. Included examples
  5391. are clear and easy but i'm not able to compile it, linker always says that
  5392. "cannot found IFFBase: hint _main".
  5393. After many trys i give it up and decide to use guigfx.library but here is
  5394. same error "cannot found GuiGFXBase: hint _main".
  5395. So i guess the problem is somewhere between chair and computer :-/
  5396. Can you help me solve this problem with libraries?
  5397. thanks in advance
  5398. Filip
  5399. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5400. eGroups is now Yahoo! Groups
  5401. Click here for more details
  5402. http://click.egroups.com/1/11231/0/_/451227/_/982586915/
  5403. ---------------------------------------------------------------------_->
  5404. @ENDNODE
  5405. @NODE "Mail_168" " Re: iff.library "
  5406. Date: 02-19-01 14:12:35
  5407. Subject: @{b}Re: iff.library@{ub}
  5408. Hi Filip
  5409. > I'm using stormC compiler from amiga dev CD 2.1.  
  5410. > I try to display iff picture with function in iff.library. Included examples are
  5411. > clear and easy but i'm not able to compile it, linker always says that "cannot
  5412. > found IFFBase: hint _main".
  5413. Sounds like you normally use the library auto-open option that I think (??, 
  5414. can't remember) Storm has. But obviously, this only works for libraries that it 
  5415. has been set up for.
  5416. Have a look in the proto/#?.h file for iff.library - copy the line which would 
  5417. look something like:
  5418. extern struct Library *IFFBase;
  5419. as a global variable in your source file and remove the extern part. Remember 
  5420. to add some code to your program to open and close this library too.
  5421. |) /\ \/ ][ |)   |\/| c |\/| ][ |\| |\|   |   dave@blitz-2000.co.uk
  5422.    http://members.nbci.com/david_mcminn   |   ICQ=16827694
  5423. 'Some motherf**kers are always trying to ice-skate uphill' - Blade
  5424. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5425. eGroups is now Yahoo! Groups
  5426. Click here for more details
  5427. http://click.egroups.com/1/11231/0/_/451227/_/982588242/
  5428. ---------------------------------------------------------------------_->
  5429. @ENDNODE
  5430. @NODE "Mail_169" " Members Postings Going to Aminet "
  5431. Date: 02-19-01 16:15:29
  5432. Subject: @{b}Members Postings Going to Aminet@{ub}
  5433. Is everyone aware that all the trafic on this list is being 
  5434. compiled in Amigaguide format & posted to Aminet,
  5435. complete with everyone's email address...
  5436. I for one never new this was occuring until tonight & wish 
  5437. someone had mentioned it beforehand, otherwise I would
  5438. have not given my permission or have joined if I knew...
  5439. It states on the egroup that archives are for *members only,*
  5440. Members only,  to me means,  NOT the general public....
  5441. _________________________________________
  5442. Colin Wenzel.  Quensland, Australia.
  5443. EMAIL:  colstv@hotkey.net.au
  5444. URL:       http://www.hotkey.net.au/~colstv/
  5445. AMIGA: 4000T,  68060/50,  150Mb RAM,  
  5446.                OS 3.9,  Spectrum Gfx Card + P96.
  5447. Need an Image Generator For CATV  ??
  5448.        http://connect.to/products
  5449. _________________________________________
  5450. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5451. eGroups is now Yahoo! Groups
  5452. Click here for more details
  5453. http://click.egroups.com/1/11231/0/_/451227/_/982595739/
  5454. ---------------------------------------------------------------------_->
  5455. @ENDNODE
  5456. @NODE "Mail_170" " gtlayout and vbcc "
  5457. Date: 02-19-01 17:00:08
  5458. Subject: @{b}gtlayout and vbcc@{ub}
  5459. Hi everyone,
  5460. Does anyone know how to get programs using calls to gtlayout library to
  5461. compile under vbcc? I've got the gtlayout archive and it seems to rely on
  5462. #pragmas for SAS/C, instead of having a link lib, and there aren't any fd
  5463. files in the archive :(
  5464. BTW, has anyone ever come across a function called ReportMouse1()? There's a
  5465. reference to it in the code for the breakout clone FlashNG, and I've no idea
  5466. where it comes from, and the linker can't work it out either...
  5467. Thanks,
  5468. Giles Burdett
  5469. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5470. eGroups is now Yahoo! Groups
  5471. Click here for more details
  5472. http://click.egroups.com/1/11231/0/_/451227/_/982598381/
  5473. ---------------------------------------------------------------------_->
  5474. @ENDNODE
  5475. @NODE "Mail_171" " Re: Members Postings Going to Aminet "
  5476. Date: 02-19-01 17:09:18
  5477. Subject: @{b}Re: Members Postings Going to Aminet@{ub}
  5478. Hi Colin,
  5479. On 19-Feb-01, you wrote:
  5480. > It states on the egroup that archives are for *members only,*
  5481. > Members only,  to me means,  NOT the general public....
  5482. But the general public can just as easily peruse the archive on
  5483. eGroups/YahooGroups, which is arguably easier through a web browser
  5484. (speaking in terms of cross platform accessibility) than through an
  5485. AmigaGuide document, and it is therefore open to a far greater body of people
  5486. by that route. So I don't quite see where the problem lies with the Aminet
  5487. copy of the archives?
  5488. Regards,
  5489. Giles Burdett
  5490. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5491. eGroups is now Yahoo! Groups
  5492. Click here for more details
  5493. http://click.egroups.com/1/11231/0/_/451227/_/982598884/
  5494. ---------------------------------------------------------------------_->
  5495. @ENDNODE
  5496. @NODE "Mail_172" " Re: Re: Members Postings Going to Aminet "
  5497. Date: 02-19-01 17:33:07
  5498. Subject: @{b}Re: Re: Members Postings Going to Aminet@{ub}
  5499. Hi Giles
  5500. > > It states on the egroup that archives are for *members only,*
  5501. > > Members only,  to me means,  NOT the general public....
  5502. > But the general public can just as easily peruse the archive on
  5503. > eGroups/YahooGroups, which is arguably easier through a web browser
  5504. The general public cannot, if the group has been set up so that archives are 
  5505. for members only, which I think Colin meant. Only people who have subscribed to 
  5506. the list can look at the archives on the YaheeGroups site.
  5507. > that route. So I don't quite see where the problem lies with the Aminet copy of
  5508. > the archives?
  5509. AmigaGuide docs are just text files. Spammers getting a hold of them can just 
  5510. do a simple text scan for anything which has an @ sign in it and extract the 
  5511. bits around it.
  5512. As a user of the YaheeGroups site, you can set it so your email address never 
  5513. gets fully disclosed (i.e. just placed straight into one of the web pages) - to 
  5514. email someone from a list, you need to follow the link that is their email 
  5515. address and then post via the site form.
  5516. |) /\ \/ ][ |)   |\/| c |\/| ][ |\| |\|   |   dave@blitz-2000.co.uk
  5517.    http://members.nbci.com/david_mcminn   |   ICQ=16827694
  5518. I love the smell of Napalm in the morning.
  5519. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5520. eGroups is now Yahoo! Groups
  5521. Click here for more details
  5522. http://click.egroups.com/1/11231/0/_/451227/_/982600351/
  5523. ---------------------------------------------------------------------_->
  5524. @ENDNODE
  5525. @NODE "Mail_173" " Re: gtlayout and vbcc "
  5526. Date: 02-19-01 17:41:47
  5527. Subject: @{b}Re: gtlayout and vbcc@{ub}
  5528. Hi Giles
  5529. > Does anyone know how to get programs using calls to gtlayout library to
  5530. > compile under vbcc? I've got the gtlayout archive and it seems to rely on
  5531. > #pragmas for SAS/C, instead of having a link lib, and there aren't any fd
  5532. > files in the archive :(
  5533. You could either write the .fd file yourself, by hand (fun! ;) or you could try 
  5534. something like FD2Pragma (?) on Aminet. I'm not sure if it would allow 
  5535. conversion backwards, but I think it has full details for writing fd files by 
  5536. hand in the guide file. The one I mean is a couple of hundred kb in size.
  5537. > BTW, has anyone ever come across a function called ReportMouse1()? There's a
  5538. > reference to it in the code for the breakout clone FlashNG, and I've no idea
  5539. > where it comes from, and the linker can't work it out either...
  5540. There's intuition.library/ReportMouse(), perhaps the 1 was a typo? Or maybe it 
  5541. is part of RTGMaster (sounds like the kind of thing it might have in it as part 
  5542. of its IDCMP replacement stuff).
  5543. |) /\ \/ ][ |)   |\/| c |\/| ][ |\| |\|   |   dave@blitz-2000.co.uk
  5544.    http://members.nbci.com/david_mcminn   |   ICQ=16827694
  5545. Alec Guinness. Anagram: Genuine Class
  5546. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5547. eGroups is now Yahoo! Groups
  5548. Click here for more details
  5549. http://click.egroups.com/1/11231/0/_/451227/_/982600814/
  5550. ---------------------------------------------------------------------_->
  5551. @ENDNODE
  5552. @NODE "Mail_174" " Re: Members Postings Going to Aminet "
  5553. Date: 02-19-01 17:49:08
  5554. Subject: @{b}Re: Members Postings Going to Aminet@{ub}
  5555.     I have no problem with the postings in Aminet. 
  5556.     In fact I am happy to find the infos there. I think *everything* that is freely available should be included in Aminet. 
  5557.     Remember: Aminet is the last strong weapon we have!
  5558.     For the spammer question:
  5559.     Do you really think they look into every lha-File on Aminet? I doubt that. I think they scan freely available text-files only.
  5560.     OK, for a some more privacy: Lets ask the author of the AmigaGuide-Files if he could remove or encrypt the email adresses? 
  5561.     Encryption could be simple, just to prevent automatically working (and therefore stupid) scanners from finding addresses...
  5562.     Maybe we could add a Line 
  5563.     ## hide address##
  5564.     or something like that if dont want to see our adresses in the guide?
  5565.     Kind regards Alexander Fritsch
  5566. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5567. eGroups is now Yahoo! Groups
  5568. Click here for more details
  5569. http://click.egroups.com/1/11231/0/_/451227/_/982601396/
  5570. ---------------------------------------------------------------------_->
  5571. @ENDNODE
  5572. @NODE "Mail_175" " Re: gtlayout and vbcc "
  5573. Date: 02-19-01 20:00:28
  5574. Subject: @{b}Re: gtlayout and vbcc@{ub}
  5575. On Monday 19 February 2001 17:41 you wrote:
  5576. > > Does anyone know how to get programs using calls to gtlayout library to
  5577. > > compile under vbcc? I've got the gtlayout archive and it seems to rely
  5578. > > on #pragmas for SAS/C, instead of having a link lib, and there aren't
  5579. > > any fd files in the archive :(
  5580. > You could either write the .fd file yourself, by hand (fun! ;) or you
  5581. > could try something like FD2Pragma (?) on Aminet. I'm not sure if it
  5582. > would allow conversion backwards, but I think it has full details for
  5583. > writing fd files by hand in the guide file. The one I mean is a couple of
  5584. > hundred kb in size.
  5585. Dirk Stoecker's very nice FD2Pragma is indeed able to create fd-files from 
  5586. pragmas. So it should be possible to create headers/libs for vbcc without 
  5587. having to write an fd-file by hand.
  5588. Volker
  5589. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5590. eGroups is now Yahoo! Groups
  5591. Click here for more details
  5592. http://click.egroups.com/1/11231/0/_/451227/_/982608548/
  5593. ---------------------------------------------------------------------_->
  5594. @ENDNODE
  5595. @NODE "Mail_176" " Re: Help with gcc "
  5596. Date: 02-19-01 20:31:28
  5597. Subject: @{b}Re: Help with gcc@{ub}
  5598. I have downloaded gcc from GeekGadgets (version 2.95.1) and am
  5599. having some problems in getting it to work. I have followed the advice
  5600. given previously about compiling and linking a file and am trying to create
  5601. a simple 'Hello world' program.
  5602. I have written a C version and a C++ version of the program.
  5603. I compile the C version as follows :
  5604. gcc -c -o ram:test.o ram:test.c
  5605. and get error messages :
  5606. gcc: installation problem, cannot exec 'cpp': No such file or directory
  5607. gcc: installation problem, cannot exec 'cc1': No such file or directory
  5608. I assume that they are files required by the compiler.
  5609. Despite the errors an object file of the expected size is created.
  5610. When I try to link it :
  5611. gcc -o ram:test ram:test.o
  5612. I get the error message :
  5613. ld: failure reading string table size of ram:test.o
  5614. What do the message mean and how do I get rid of them?
  5615. (I get the same error messages when compiling and linking the C++ code
  5616. using g++).
  5617. Additionally, gcc came with an 'include' directory containing a massive amount of
  5618. files, most of which I have not met before with StormC3. In accordance with the
  5619. documentation I have set the environment variables GCC_INCLUDE_DIR &
  5620. GPLUS_INCLUDE_DIR to contain the path to gcc's include directory.
  5621. Where does g++ keep its includes?
  5622. In relation to that, I have all the Developer CD2.1 includes in StormC:Include, do I
  5623. just need to change the contents of the environment variables to make gcc & g++ use them
  5624. (bearing in mind that gcc has files that didn't come with StormC)?
  5625. Sorry for the long posting but I've never used a command line compiler before and have
  5626. a lot of questions.
  5627. Thanks,
  5628. Donald
  5629. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5630. eGroups is now Yahoo! Groups
  5631. Click here for more details
  5632. http://click.egroups.com/1/11231/0/_/451227/_/982611113/
  5633. ---------------------------------------------------------------------_->
  5634. @ENDNODE
  5635. @NODE "Mail_177" " Re: Again clipping graphics output "
  5636. Date: 02-19-01 21:52:42
  5637. Subject: @{b}Re: Again clipping graphics output@{ub}
  5638. Hello Serge,
  5639. > > If the problem is only present on cgx
  5640. > > high-colour screens then it's because you don't set BMF_MINPLANES
  5641. > > when allocating the off-screen bitmap.
  5642. > Could you describe this more precisely?
  5643. Even if you supply a cgx bitmap as friend and give a depth >8 then cgx
  5644. will still return a planar bitmap. But if you're dealing with vector
  5645. graphics you might be better off using AllocRaster + BltTemplate.
  5646. > The most interesting is
  5647. > the fact that, according to my user bug reports, this began to
  5648. > happen as soon as I began to use layers library.
  5649. Does the problem exist for both CGX and P96? CGX comes with its own
  5650. layer.library but P96 only apply minor patches to the existing
  5651. layers.library, so that one should be compatible with layer "hacks" --
  5652. but as I stated earlier you're not really allowed to mix custom
  5653. layer.library use with intuition screens.
  5654. > [...] What software should they use on graphics boards than?
  5655. Use what ever works -- for me that's P96! ;-)
  5656. >>>>> The problem in this case is, that I do not know, and can't 
  5657. >>>>> calculate the size of future graphics.
  5658. >> hmm... I'm quite sceptical here ;-)
  5659. > The user draws vector graphics, and can move it on his will. Any
  5660. > scepticism left?
  5661. I see why you might feel it quite redundant to write your own clipping
  5662. functions but I fail to see it as impossible.
  5663. Kind regards Allan
  5664. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5665. eGroups is now Yahoo! Groups
  5666. Click here for more details
  5667. http://click.egroups.com/1/11231/0/_/451227/_/982620399/
  5668. ---------------------------------------------------------------------_->
  5669. @ENDNODE
  5670. @NODE "Mail_178" " Impossible MuForce hit "
  5671. Date: 02-19-01 21:56:11
  5672. Subject: @{b}Impossible MuForce hit@{ub}
  5673. Hello there...
  5674. I'm wondering how this kind of MuForce hit is possible at all:
  5675. MuForce hit! Bad program!
  5676. LONG READ from 00000008                PC: 00FD60A4
  5677. USP : 6908F7CC SR: 0010  (U0)(-)(-)  TCB: 68C83EE8
  5678. Data: 6902691A ABAD0000 00004000 68FFE480 00000001 1A3CE325 1A321707 00000014
  5679. ----> 6902691A - "LIBS:EasyUpdate.library"  Hunk 0000 Offset 00000C82
  5680. Addr: 00000000 6908F7DC 6902691A 6902692A 68FFD340 68FFE464 6802B074 68555B74
  5681. Stck: 00FD60AC 68FFE464 00FD350A 6902691A 00000102 00FCFB50 6902691A 690279AE
  5682. Stck: 69027992 68FFD628 6908F898 6902786E 00004000 00000000 00000001 1A3CE325
  5683. ----> 00FD60A4 - "ROM - intuition 40.85 (5.5.93)"  Hunk 0000 Offset 00006C08
  5684. ----> 00FD60AC - "ROM - intuition 40.85 (5.5.93)"  Hunk 0000 Offset 00006C10
  5685. ----> 00FD350A - "ROM - intuition 40.85 (5.5.93)"  Hunk 0000 Offset 0000406E
  5686. ----> 6902691A - "LIBS:EasyUpdate.library"  Hunk 0000 Offset 00000C82
  5687. ----> 00FCFB50 - "ROM - intuition 40.85 (5.5.93)"  Hunk 0000 Offset 000006B4
  5688. ----> 6902691A - "LIBS:EasyUpdate.library"  Hunk 0000 Offset 00000C82
  5689. ----> 690279AE - "LIBS:EasySocket.library"  Hunk 0000 Offset 000006AE
  5690. ----> 69027992 - "LIBS:EasySocket.library"  Hunk 0000 Offset 00000692
  5691. ----> 6902786E - "LIBS:EasySocket.library"  Hunk 0000 Offset 0000056E
  5692. PC-8: FFF04E5D 4E750000 2F0A4CEF 05000008 200A6712 2008670E 226F0010 487A000A
  5693. PC *: 2F280008 4E757000 245F4E75 2F0A4CEF 05000008 200A67EE 200867EA 43EF0010
  5694. 00fd6082 :  0c04 fff0              cmpi.b #-$10,d4
  5695. 00fd6086 :  4e5d               unlk a5
  5696. 00fd6088 :  4e75               rts
  5697. 00fd608a :  0000 2f0a              ori.b #$a,d0
  5698. 00fd608e :  4cef 0500 0008             movem.l $8(a7),a0/a2
  5699. 00fd6094 :  200a               move.l a2,d0
  5700. 00fd6096 :  6712               beq.s $fd60aa
  5701. 00fd6098 :  2008               move.l a0,d0
  5702. 00fd609a :  670e               beq.s $fd60aa
  5703. 00fd609c :  226f 0010              movea.l $10(a7),a1
  5704. 00fd60a0 :  487a 000a              pea.l $fd60ac(pc)
  5705. 00fd60a4 : *2f28 0008              move.l $8(a0),-(a7)
  5706. 00fd60a8 :  4e75               rts
  5707. 00fd60aa :  7000               moveq.l #$0,d0
  5708. 00fd60ac :  245f               movea.l (a7)+,a2
  5709. 00fd60ae :  4e75               rts
  5710. As you can see there is an illegal read access at line $fd6024, LONG READ
  5711. from $00000008. This is possible only if A0 is NULL [move.l 8(a0),-(a7)], but
  5712. as you can see the register A0 is checked against NULL pointer at line
  5713. $fd6098. Eh?
  5714. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5715. eGroups is now Yahoo! Groups
  5716. Click here for more details
  5717. http://click.egroups.com/1/11231/0/_/451227/_/982617027/
  5718. ---------------------------------------------------------------------_->
  5719. @ENDNODE
  5720. @NODE "Mail_179" " Re: Help with gcc "
  5721. Date: 02-19-01 23:22:25
  5722. Subject: @{b}Re: Help with gcc@{ub}
  5723. Donald wrote:
  5724. > I compile the C version as follows :
  5725. > gcc -c -o ram:test.o ram:test.c
  5726. > and get error messages :
  5727. > gcc: cannot exec 'cpp': No such file or directory
  5728. > gcc: cannot exec 'cc1': No such file or directory
  5729. These file should be in the gg:bin, what may of happened if you 
  5730. followed the instructions on the geekgadgets page is that you forgot 
  5731. to add the gg: assign to your user startup. You also need to add 
  5732. execute GG:Sys/S/GG-Startup. That script sets up all assigns and 
  5733. paths as well as other things.
  5734. Also as a side note since you are compiling a single file then you 
  5735. can use:
  5736. gcc -o ram:test ram:test.c
  5737. which will do all compiling and linking.
  5738. > Despite the errors an object file of the expected size is created.
  5739. > When I try to link it :
  5740. > gcc -o ram:test ram:test.o
  5741. > I get the error message :
  5742. > ld: failure reading string table size of ram:test.o
  5743. This is because the object was not properly created.
  5744. > (I get the same error messages when compiling and linking the C++ 
  5745. > code using g++).
  5746. I suggest first getting the C part set up first.
  5747. > Additionally, gcc came with an 'include' directory containing a 
  5748. > massive amount of files, most of which I have not met before with 
  5749. > StormC3. In accordance with the documentation I have set the 
  5750. > environment variables GCC_INCLUDE_DIR &
  5751. > GPLUS_INCLUDE_DIR to contain the path to gcc's include directory.
  5752. There is no need to set these, GCC will search the defaults in its 
  5753. dirs automatically(include, os-include).
  5754. > Where does g++ keep its includes?
  5755. Its in gg:include/g++-3
  5756. > In relation to that, I have all the Developer CD2.1 includes in 
  5757. > StormC:Include, do I
  5758. > just need to change the contents of the environment variables to 
  5759. > make gcc & g++ use them
  5760. > (bearing in mind that gcc has files that didn't come with StormC)?
  5761. No, because Storm has its own default includes and these may clash(eg 
  5762. stdio.h). I suggest copy from the NDK35 to gg:os-include, remember 
  5763. that you dont need the proto and pragmas, since GG comes with them(in 
  5764. gg:include).
  5765. > Sorry for the long posting but I've never used a command line 
  5766. > compiler before and have a lot of questions.
  5767. No problem, I am sure a lot of people have these problems, I had them 
  5768. recently when I installed it.
  5769. BTW the cause of most problems is that GCC is case sensitive.
  5770. Shinda
  5771. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5772. eGroups is now Yahoo! Groups
  5773. Click here for more details
  5774. http://click.egroups.com/1/11231/0/_/451227/_/982621395/
  5775. ---------------------------------------------------------------------_->
  5776. @ENDNODE
  5777. @NODE "Mail_180" " Re: Impossible MuForce hit "
  5778. Date: 02-20-01 00:26:42
  5779. Subject: @{b}Re: Impossible MuForce hit@{ub}
  5780. Hello Ilkka
  5781. On 19-Feb-01, Ilkka Lehtoranta wrote:
  5782. > As you can see there is an illegal read access at line $fd6024, LONG READ
  5783. > from $00000008. This is possible only if A0 is NULL [move.l 8(a0),-(a7)],
  5784. > but as you can see the register A0 is checked against NULL pointer at line
  5785. > $fd6098. Eh?
  5786. and what if program jumps into this code after a0 is checked against NULL?
  5787.  Sebastian
  5788. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5789. eGroups is now Yahoo! Groups
  5790. Click here for more details
  5791. http://click.egroups.com/1/11231/0/_/451227/_/982626573/
  5792. ---------------------------------------------------------------------_->
  5793. @ENDNODE
  5794. @NODE "Mail_181" " Re: Cybergraphics/LockBitMapTagList() "
  5795. Date: 02-18-01 03:30:08
  5796. Subject: @{b}Re: Cybergraphics/LockBitMapTagList()@{ub}
  5797. Hi Gabriele 
  5798. Gabriele Svelto wrote this on 07-Feb-01 at 21:31:42
  5799. > I didn't thought of blitting... It could be slower but if the gfx board
  5800. > has some dedicated hardware it won't be of too much overhead, BTW isn't
  5801. > this the only method to do double--buffering in a window? See ya
  5802. If you`re just writing for newer GfxCards you could use Warp3D to do your
  5803. blitting. Sounds wierd, I know, but it works well as a 2D graphics lib. You
  5804. also get rotation and scaling at very high speeds. Also it comes as a WarpUp
  5805. shared library.
  5806. any persons, living or dead, are entirely coincidental.    
  5807. Tim Hanson,
  5808. by the River,Canterbury, Kent.
  5809. Amiga A1200T,`040/25,603e/160,32MB Fast,BVisionPPC,
  5810. 8.4GB IDE HD,ZIP SCSI,RENO x2CD SCSI,Pace 56K
  5811. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5812. eGroups is now Yahoo! Groups
  5813. Click here for more details
  5814. http://click.egroups.com/1/11231/0/_/451227/_/982635955/
  5815. ---------------------------------------------------------------------_->
  5816. @ENDNODE
  5817. @NODE "Mail_182" " Re: Alloc/Free___ Chip memory fragmentation "
  5818. Date: 02-18-01 03:36:03
  5819. Subject: @{b}Re: Alloc/Free___ Chip memory fragmentation@{ub}
  5820. Hi William 
  5821. William Robinson wrote this on 08-Feb-01 at 16:12:45
  5822. > Problematic Task:
  5823. >     implementing a double buffered intuition screen
  5824. > Problem:
  5825. >     When the program executes, I get lots of errors at the end
  5826. > saying: "memory block at address: SOMEHEXNUMBER of size 0 not freed".
  5827. > and then another usually saying: "two other memory blocks of size <a
  5828. >> bytes not freed". So, I use the flush resources
  5829. Before freeing the window you must restore the original buffer or it will free
  5830. the one that is attached.
  5831. any persons, living or dead, are entirely coincidental.    
  5832. Tim Hanson,
  5833. by the River,Canterbury, Kent.
  5834. Amiga A1200T,`040/25,603e/160,32MB Fast,BVisionPPC,
  5835. 8.4GB IDE HD,ZIP SCSI,RENO x2CD SCSI,Pace 56K
  5836. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5837. eGroups is now Yahoo! Groups
  5838. Click here for more details
  5839. http://click.egroups.com/1/11231/0/_/451227/_/982635959/
  5840. ---------------------------------------------------------------------_->
  5841. @ENDNODE
  5842. @NODE "Mail_183" " Re: Starting from WB & CLI "
  5843. Date: 02-18-01 03:37:05
  5844. Subject: @{b}Re: Starting from WB & CLI@{ub}
  5845. Hi Christophe 
  5846. Christophe Ochal wrote this on 08-Feb-01 at 19:32:43
  5847. > Hello,
  5848. > I was wondering if someone has some dox on how to create C programs that can
  5849. > be launched from WB, and from CLI.
  5850. > I need to enable my (cli-based) app to be launched with an icon and to have
  5851. > it open a CLI or CON window itself.
  5852. > IIRC it was with using _main(), but i'm not sure :(
  5853. > Kind regards
  5854. What compiler are you using?
  5855. any persons, living or dead, are entirely coincidental.    
  5856. Tim Hanson,
  5857. by the River,Canterbury, Kent.
  5858. Amiga A1200T,`040/25,603e/160,32MB Fast,BVisionPPC,
  5859. 8.4GB IDE HD,ZIP SCSI,RENO x2CD SCSI,Pace 56K
  5860. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5861. eGroups is now Yahoo! Groups
  5862. Click here for more details
  5863. http://click.egroups.com/1/11231/0/_/451227/_/982635962/
  5864. ---------------------------------------------------------------------_->
  5865. @ENDNODE
  5866. @NODE "Mail_184" " Re: Re: Impossible MuForce hit "
  5867. Date: 02-20-01 08:46:42
  5868. Subject: @{b}Re: Re: Impossible MuForce hit@{ub}
  5869. On Tue, Feb 20, 2001 at 12:26:42AM +0100, Sebastian Jedruszkiewicz wrote:
  5870. > Hello Ilkka
  5871. > On 19-Feb-01, Ilkka Lehtoranta wrote:
  5872. > > As you can see there is an illegal read access at line $fd6024, LONG READ
  5873. > > from $00000008. This is possible only if A0 is NULL [move.l 8(a0),-(a7)],
  5874. > > but as you can see the register A0 is checked against NULL pointer at line
  5875. > > $fd6098. Eh?
  5876. > and what if program jumps into this code after a0 is checked against NULL?
  5877.   Indeed, thats it. From the code snippet one can see that this is a part
  5878.   of the BOOPSI supportcode. The original functions jump directly to the
  5879.   final dispatch code (thats the part shown in the hit)
  5880.   Gunther
  5881. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5882. eGroups is now Yahoo! Groups
  5883. Click here for more details
  5884. http://click.egroups.com/1/11231/0/_/451227/_/982655382/
  5885. ---------------------------------------------------------------------_->
  5886. @ENDNODE
  5887. @NODE "Mail_185" " Re: Members Postings Going to Aminet "
  5888. Date: 02-20-01 11:55:13
  5889. Subject: @{b}Re: Members Postings Going to Aminet@{ub}
  5890. Hello Colin
  5891. On 19-Feb-01, you wrote:
  5892. > Is everyone aware that all the trafic on this list is being 
  5893. > compiled in Amigaguide format & posted to Aminet,
  5894. > complete with everyone's email address...
  5895. Yes and I think it's a brilliant idea. It's great having  (offline)  copies
  5896. of  all  previous  mails  for  reference purposes. Many a time I have had a
  5897. problem which was solved by grepping the archives.
  5898. > I for one never new this was occuring until tonight & wish 
  5899. > someone had mentioned it beforehand, otherwise I would
  5900. > have not given my permission or have joined if I knew...
  5901. Why? And besides this  was  discussed  nearly  two  years  ago  and  nobody
  5902. objected.
  5903. Steve
  5904. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5905. eGroups is now Yahoo! Groups
  5906. Click here for more details
  5907. http://click.egroups.com/1/11231/0/_/451227/_/982670199/
  5908. ---------------------------------------------------------------------_->
  5909. @ENDNODE
  5910. @NODE "Mail_186" " Re: Tasks vs. Threads "
  5911. Date: 02-20-01 12:17:15
  5912. Subject: @{b}Re: Tasks vs. Threads@{ub}
  5913. Hello Gabriele
  5914. On 20-Feb-01, you wrote:
  5915. > First of all what are the differences between tasks and threads? I
  5916. > suppose that the more 'portable' approach is by using threads (since
  5917. > unix clones seem to use that), what are the other advantages of a method
  5918. > over the other? Can someone shed a little of light on this poor
  5919. > single-task coder? ;-) Thanx in advance guys
  5920. Threads are often referred to as light weight processes (processes are  the
  5921. same  as  tasks)  and  are  identical  in  many respects to real processes.
  5922. However, they confer several advantages. The most important, is the reduced
  5923. overhead  on  the  operating  system  - the effort required to create a new
  5924. process and to context switch is completely avoided..
  5925. Instead, the parent process (threads are  always  controlled  by  a  parent
  5926. process)  performs  the  thread  context  switching  itself - or if you use
  5927. pthreads or similar, the library code will do this. In other words, threads
  5928. are switched within the time slice available to the parent process.
  5929. I personally don't see the point of them on  the  Amiga,  as  the  AmigaOSs
  5930. scheduler  works  just  great. The reason pthreads exists at all is because
  5931. many UNIX implementations have "inefficient" schedulers (they do more  work
  5932. than  they  need  to) and certain types of process benefit greatly from the
  5933. reduced overhead of threads.
  5934. Regards
  5935. Steve
  5936. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5937. eGroups is now Yahoo! Groups
  5938. Click here for more details
  5939. http://click.egroups.com/1/11231/0/_/451227/_/982671525/
  5940. ---------------------------------------------------------------------_->
  5941. @ENDNODE
  5942. @NODE "Mail_187" " Tasks vs. Threads "
  5943. Date: 02-20-01 12:39:52
  5944. Subject: @{b}Tasks vs. Threads@{ub}
  5945.  Hello guys,
  5946. I have nearly no experience with tasks/threads but I was working on a
  5947. software renderer for 3d gfx, since the renderer draws the image line by
  5948. line (it's a segment-buffer phong shader) I thought that it could be easy
  5949. to make it multi-processor compatible by spawning from the main proggie
  5950. two tasks (or threads, later on this) and send them messages for drawing
  5951. a line, waiting until they answer that they have ended and then sending
  5952. another line, etc... Now, it looks like there are two ways of doing
  5953. this, the first is by using Tasks (I believe) and the other is using
  5954. Threads like in a Unixish environment (as seen in threads.library ;-).
  5955. First of all what are the differences between tasks and threads? I
  5956. suppose that the more 'portable' approach is by using threads (since
  5957. unix clones seem to use that), what are the other advantages of a method
  5958. over the other? Can someone shed a little of light on this poor
  5959. single-task coder? ;-) Thanx in advance guys
  5960.  Gabriele
  5961. TiscaliNet, libero accesso ad Internet.
  5962. http://www.tiscalinet.it
  5963. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5964. eGroups is now Yahoo! Groups
  5965. Click here for more details
  5966. http://click.egroups.com/1/11231/0/_/451227/_/982669197/
  5967. ---------------------------------------------------------------------_->
  5968. @ENDNODE
  5969. @NODE "Mail_188" " Re: Re: Alloc/Free___ Chip memory fragmentation "
  5970. Date: 02-20-01 15:51:17
  5971. Subject: @{b}Re: Re: Alloc/Free___ Chip memory fragmentation@{ub}
  5972. > > Problematic Task:
  5973. > >     implementing a double buffered intuition screen
  5974. > > Problem:
  5975. > >     When the program executes, I get lots of errors at the end
  5976. > > saying: "memory block at address: SOMEHEXNUMBER of size 0 not freed".
  5977. > > and then another usually saying: "two other memory blocks of size <a
  5978. > >> bytes not freed". So, I use the flush resources
  5979. > Before freeing the window you must restore the original buffer or it will free
  5980. > the one that is attached.
  5981. i'm using a jsut a screen... so it needs to have to original settings as
  5982. when it was opened when freed?
  5983. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  5984. eGroups is now Yahoo! Groups
  5985. Click here for more details
  5986. http://click.egroups.com/1/11231/0/_/451227/_/982680675/
  5987. ---------------------------------------------------------------------_->
  5988. @ENDNODE
  5989. @NODE "Mail_189" " Re: [amiga-c] "
  5990. Date: 02-20-01 16:20:40
  5991. Subject: @{b}Re: [amiga-c]@{ub}
  5992. Quoting Andrew Crowe <andrewcrowe@enterprise.net>:
  5993. > Hi Everybody,
  5994. > Ok, I know that using #define var_name xxx replaces all the
  5995. > "var_name"s in the code with xxx before compiling (so it's faster then
  5996. > using a variable), and I /think/ you can do it with piece of code
  5997. > like:
  5998. > #define code[a,b,c]{a=b*c+a}
  5999. Use () not [].  That hasn't got a semi-colon, so is a syntax error, although
  6000. you could use () instead of {}, to make that work.  It would also be better not
  6001. to use a twice in this piece of code, and to throw more brackets in; it also
  6002. needs a space between the defined & defining code.
  6003. #define code(a,b,c) ((a)+=((b)*(c)))
  6004. > so that if you had the line:
  6005. > code[var1,var2,6]
  6006. > the compiler would convert that to
  6007. > var1=var2*6+var1
  6008. > before compiling (thus being faster thensubroutines).
  6009. > The only problem is I don't know the syntax for the define, and that
  6010. > example there didn't work.
  6011. > See ya :)
  6012. You could do this in C++, mind, if you are clever with your operator
  6013. overloading.
  6014. -------------------------------------------------
  6015. This mail sent through UK Online webmail
  6016. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  6017. eGroups is now Yahoo! Groups
  6018. Click here for more details
  6019. http://click.egroups.com/1/11231/0/_/451227/_/982682444/
  6020. ---------------------------------------------------------------------_->
  6021. @ENDNODE
  6022. @NODE "Mail_190" " includes and stuff "
  6023. Date: 02-20-01 16:48:04
  6024. Subject: @{b}includes and stuff@{ub}
  6025. Hello,
  6026. I'm trying to make some functions for myself to make programming easier, i
  6027. want to put them in a seperate .h and .c file but i don't know how to
  6028. organize it.
  6029. I'll give an example:
  6030. i want to make a unit with my functions called myfunctions. So i start with
  6031. a header file:
  6032. #ifndef MYFUNCTIONS
  6033. #define MYFUNCTIONS
  6034. /* my function to get a filename using the asl.library */
  6035. char* getFilename(char* title, char* location)
  6036. //input a title that the asl will have, location is the place the where the
  6037. asl will start
  6038. //output a string with the given path and filename, will be empty is the
  6039. user-cancelled
  6040. #endif
  6041. So that's the header file, but then i did some thinking and had some
  6042. questions: the function needs the asl.library and the asl.h to work
  6043. properly. But when you need to open a libary you also need the Exec.h files
  6044. included. My question where to put those? 
  6045. And should i really open those libraries in my function or should it be a
  6046. request before you use the function itself?
  6047. Then i started writing the myfunctions.c, 
  6048. i wrote it, i'll give you the source for it (hasn't been tested, some maybe
  6049. lot's of bugs, just for the idea)
  6050. #include <string.h>
  6051. char* getFilename(char* title,char* location)
  6052.     struct Library *AslBase;
  6053.     struct FileRequester *fr;
  6054.     if (AslBase = OpenLibrary("asl.library", 37L))
  6055.     {
  6056.         if (fr = (struct FileRequester *) 
  6057.                             AllocAslRequest(ASL_FileRequest,
  6058.                                                     ASLFR_TitleText,        
  6059.    titel,
  6060.                                                     ASLFR_InitialDrawer,   
  6061. home,
  6062.                                                     TAG_DONE))
  6063.         {
  6064.             if (AslRequest(fr, NULL))
  6065.             {
  6066.                 printf("PATH=%s  FILE=%s\n", fr->rf_Dir, fr->rf_File);
  6067.                 return(strcat(fr->rf_Dir,fr->rf_File));
  6068.             }
  6069.             FreeAslRequest(fr);
  6070.         }
  6071.         else return "";
  6072.         CloseLibrary(AslBase);
  6073.     }
  6074. So  i found out, i needed the string.h include to be able to use the strcat
  6075. function, again i don't know what to do: put a #include <string.h> in this
  6076. myfunctions.c file, or should it be in my myfunctions.h file...
  6077. Maybe you don't get all my problems, but the mainpoint is: how to organize
  6078. such things to put some things in seperate files. Till this time i always
  6079. just one file with all the code scrammed into it, and i want to start
  6080. reorganizing my code.
  6081. Thanks for any help and for all people who reacted to my IDCMP question.
  6082. Groeten,
  6083. Joris Kempen - webmaster
  6084. visit www.detrekkers.com
  6085. I like work ... I can sit and watch it for hours.
  6086. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  6087. eGroups is now Yahoo! Groups
  6088. Click here for more details
  6089. http://click.egroups.com/1/11231/0/_/451227/_/982689856/
  6090. ---------------------------------------------------------------------_->
  6091. @ENDNODE
  6092. @NODE "Mail_191" " Re: Tasks vs. Threads "
  6093. Date: 02-20-01 17:43:21
  6094. Subject: @{b}Re: Tasks vs. Threads@{ub}
  6095. On 20-Feb-01, Stephen Illingworth wrote:
  6096. >> First of all what are the differences between tasks and threads? I
  6097. >> suppose that the more 'portable' approach is by using threads (since
  6098. >> unix clones seem to use that), what are the other advantages of a
  6099. >> method over the other? Can someone shed a little of light on this
  6100. >> poor single-task coder? ;-) Thanx in advance guys
  6101. [snip]
  6102. > I personally don't see the point of them on the Amiga, as the AmigaOSs
  6103. > scheduler works just great. The reason pthreads exists at all is
  6104. > because many UNIX implementations have "inefficient" schedulers (they
  6105. > do more work than they need to) and certain types of process benefit
  6106. > greatly from the reduced overhead of threads.
  6107. I think memory protection is the difference you are looking for between
  6108. the Amiga and the other guys.  Threads run in the memory space of the
  6109. parent process and almost always offer no memory protection (hence the
  6110. term "lightweight").  Processes do have memory protection and are
  6111. prevented from clobbering each other.  Memory protection adds even more
  6112. complexity when you need to share memory between two processes and
  6113. usually requires the use of "handles" instead of pointers.  Threads
  6114. can simply pass a pointer to access their shared memory space.
  6115. Needless to say, the topic of memory protection is much more complex
  6116. than you'd initially believe so let's not go there.
  6117. Given that the AmigaOS lacks memory protection you can think of AmigaOS
  6118. Tasks as Threads.  You can even share the same memory space and pass
  6119. pointers around without any restrictions just like "real" threads.
  6120. The more 'portable' approach is to use POSIX threads (pthreads) but
  6121. even they are no guarantee that you won't have porting problems.
  6122. There is a port of the pthreads package for the Amiga available
  6123. somewhere from http://www.geekgadgets.org but I've never tried it so I
  6124. can't say anything more about it.
  6125. Can anyone say whether the new AmigaDE supports pthreads or not?
  6126. Cheers,
  6127. Steven Solie, Software Evolution
  6128. ssolie@home.com, http://members.home.net/ssolie
  6129. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  6130. eGroups is now Yahoo! Groups
  6131. Click here for more details
  6132. http://click.egroups.com/1/11231/0/_/451227/_/982687406/
  6133. ---------------------------------------------------------------------_->
  6134. @ENDNODE
  6135. @NODE "Mail_192" " Re: includes and stuff "
  6136. Date: 02-20-01 19:19:24
  6137. Subject: @{b}Re: includes and stuff@{ub}
  6138. --- Joris Kempen <Trekker@studenten.net> a 
  6139. crit : >
  6140. Hello,
  6141. Hi too,
  6142. > I'm trying to make some functions for myself to make
  6143. > programming easier, i
  6144. > want to put them in a seperate .h and .c file but i
  6145. > don't know how to
  6146. > organize it.
  6147. Cool,
  6148. > I'll give an example:
  6149. [...]
  6150. > So that's the header file, but then i did some
  6151. > thinking and had some
  6152. > questions: the function needs the asl.library and
  6153. > the asl.h to work
  6154. > properly. But when you need to open a libary you
  6155. > also need the Exec.h files
  6156. > included. My question where to put those?
  6157. I think it should be in the .c file. These headers are
  6158. only used INSIDE the function (and not need for
  6159. passing argument), so it will speed up compilation :
  6160. asl.h will not be readed for compiling all stuff that
  6161. include your .h
  6162. > And should i really open those libraries in my
  6163. > function or should it be a
  6164. > request before you use the function itself?
  6165. Should be openned before you use this function.
  6166. It's means you should check inside your function if
  6167. libraries are open or ... use autoopen capability of
  6168. many compilers.
  6169. > Then i started writing the myfunctions.c, 
  6170. > i wrote it, i'll give you the source for it (hasn't
  6171. > been tested, some maybe
  6172. > lot's of bugs, just for the idea)
  6173. [...]
  6174. > So  i found out, i needed the string.h include to be
  6175. > able to use the strcat
  6176. > function, again i don't know what to do: put a
  6177. > #include <string.h> in this
  6178. > myfunctions.c file, or should it be in my
  6179. > myfunctions.h file...
  6180. In myfunctions.c !
  6181. > Maybe you don't get all my problems, but the
  6182. > mainpoint is: how to organize
  6183. > such things to put some things in seperate files.
  6184. > Till this time i always
  6185. > just one file with all the code scrammed into it,
  6186. > and i want to start
  6187. > reorganizing my code.
  6188. The rule is :
  6189. - if it's something used by the interface (struct,
  6190. typedef, etc ... used in the .h file) the place is in
  6191. the header.
  6192. - if not, it's in the .c file.
  6193. Laurent 
  6194. =====
  6195. The misspelling master is on the Web.
  6196.    _________
  6197.   /        /(
  6198.  /  Dico  / /    100 % Dictionnary Free !
  6199. /________/ /         
  6200. (#######( /
  6201. Quoi, des fautes d'orthographe! Pas possible ;-D.
  6202. __________________________________________________
  6203. Do You Yahoo!?
  6204. Get personalized email addresses from Yahoo! Mail - only $35 
  6205. a year!  http://personal.mail.yahoo.com/
  6206. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  6207. eGroups is now Yahoo! Groups
  6208. Click here for more details
  6209. http://click.egroups.com/1/11231/0/_/451227/_/982693166/
  6210. ---------------------------------------------------------------------_->
  6211. @ENDNODE
  6212. @NODE "Mail_193" " Re: includes and stuff "
  6213. Date: 02-20-01 19:56:18
  6214. Subject: @{b}Re: includes and stuff@{ub}
  6215. To:                 amiga-c@yahoogroups.com
  6216. From:               Laurent FAILLIE <l_faillie@yahoo.com>
  6217. Date sent:          Tue, 20 Feb 2001 10:19:24 -0800 (PST)
  6218. Send reply to:      amiga-c@yahoogroups.com
  6219. Subject:            Re: [amiga-c] includes and stuff
  6220. > --- Joris Kempen <Trekker@studenten.net> a 
  6221. crit : >
  6222. > Hello,
  6223. > Hi too,
  6224. > > I'm trying to make some functions for myself to make
  6225. > > programming easier, i
  6226. > > want to put them in a seperate .h and .c file but i
  6227. > > don't know how to
  6228. > > organize it.
  6229. > Cool,
  6230. > > I'll give an example:
  6231. > [...]
  6232. > > So that's the header file, but then i did some
  6233. > > thinking and had some
  6234. > > questions: the function needs the asl.library and
  6235. > > the asl.h to work
  6236. > > properly. But when you need to open a libary you
  6237. > > also need the Exec.h files
  6238. > > included. My question where to put those?
  6239. > I think it should be in the .c file. These headers are
  6240. > only used INSIDE the function (and not need for
  6241. > passing argument), so it will speed up compilation :
  6242. > asl.h will not be readed for compiling all stuff that
  6243. > include your .h
  6244. > > And should i really open those libraries in my
  6245. > > function or should it be a
  6246. > > request before you use the function itself?
  6247. > Should be openned before you use this function.
  6248. > It's means you should check inside your function if
  6249. > libraries are open or ... use autoopen capability of
  6250. > many compilers.
  6251. > > Then i started writing the myfunctions.c, 
  6252. > > i wrote it, i'll give you the source for it (hasn't
  6253. > > been tested, some maybe
  6254. > > lot's of bugs, just for the idea)
  6255. > [...]
  6256. > > So  i found out, i needed the string.h include to be
  6257. > > able to use the strcat
  6258. > > function, again i don't know what to do: put a
  6259. > > #include <string.h> in this
  6260. > > myfunctions.c file, or should it be in my
  6261. > > myfunctions.h file...
  6262. > In myfunctions.c !
  6263. > > Maybe you don't get all my problems, but the
  6264. > > mainpoint is: how to organize
  6265. > > such things to put some things in seperate files.
  6266. > > Till this time i always
  6267. > > just one file with all the code scrammed into it,
  6268. > > and i want to start
  6269. > > reorganizing my code.
  6270. > The rule is :
  6271. > - if it's something used by the interface (struct,
  6272. > typedef, etc ... used in the .h file) the place is in
  6273. > the header.
  6274. > - if not, it's in the .c file.
  6275. > Bye
  6276. > Laurent 
  6277. > =====
  6278. > The misspelling master is on the Web.
  6279. >    _________
  6280. >   /        /(
  6281. >  /  Dico  / /    100 % Dictionnary Free !
  6282. > /________/ /         
  6283. > (#######( /
  6284. > Quoi, des fautes d'orthographe! Pas possible ;-D.
  6285. > __________________________________________________
  6286. > Do You Yahoo!?
  6287. > Get personalized email addresses from Yahoo! Mail - only $35 
  6288. > a year!  http://personal.mail.yahoo.com/
  6289. > ------------------------ Yahoo! Groups Sponsor
  6290. > ---------------------~-~> eGroups is now Yahoo! Groups Click here for
  6291. > more details http://click.egroups.com/1/11231/0/_/451227/_/982693166/
  6292. > ---------------------------------------------------------------------_
  6293. You can take this one step further and make object oriented libraries 
  6294. (yes... in C). You can effectively hide private data internal to your 
  6295. library in the following way:
  6296. /* file: library.h */
  6297. struct MyObject;
  6298. struct MyObject * MakeObject();    /* malloc and initialise an object */
  6299. void FreeObject(struct MyObject *);        /* free it */
  6300. ... /* other operations on MyObject */
  6301. /* file: library.c */
  6302. struct MyObject {
  6303.     unsigned int i;
  6304.     Foobar_t j;
  6305.     /* etc */
  6306. The interesting twist to this of course is that you can do something 
  6307. snazy in the MakeMyObject() to dynamically load any libraries you 
  6308. need by using a static variable to count the number of objects. e.g.
  6309. unsigned long MyObjectCount=0;
  6310.     /* It's a global... but it is at least local to the library */
  6311. struct MyObject * MakeObject() {
  6312.     struct MyObject * obj;
  6313.     obj=malloc(sizeof(*obj));
  6314.     if (!obj) return NULL;
  6315.     if (!MyObjectCount) {
  6316.         /* initialise libraries */
  6317.     /* initialise obj */
  6318.     MyObjectCount++;
  6319.     return obj;
  6320. void FreeObject(struct MyObject * obj) {
  6321.     free(obj);    /* plus whatever other freeing it needs */
  6322.     MyObjectCount--;
  6323. If you want to you can (and probably should) close any libraries 
  6324. you've openned previously for this library.
  6325. Since you cannot access any features of the object before you've made 
  6326. one.. and since you can load your libraries then this seems like a 
  6327. pretty good approach for the more 'normal' things you might code. (Of 
  6328. course, there are things which fit with this quite well, and other 
  6329. things which don't.)
  6330. Ian Woods
  6331. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  6332. eGroups is now Yahoo! Groups
  6333. Click here for more details
  6334. http://click.egroups.com/1/11231/0/_/451227/_/982695093/
  6335. ---------------------------------------------------------------------_->
  6336. @ENDNODE
  6337. @NODE "Mail_194" " Re: Again clipping graphics output "
  6338. Date: 02-20-01 20:38:02
  6339. Subject: @{b}Re: Again clipping graphics output@{ub}
  6340. Hello Sensei
  6341. On 19-Feb-01, you wrote:
  6342. S>> Could you describe this more precisely? The most interesting is
  6343. S>> the fact that, according to my user bug reports, this began to
  6344. S>> happen as soon as I began to use layers library.
  6345. S> And that is why I asked you for working part of source... ;) Without it I
  6346. S> cannot check if you implemented layers correctly...
  6347. Here are some parts. This is the init procedure.
  6348. === Cut ===
  6349. static struct Layer * PrepareLayer(struct Layer_Info * LI,
  6350.                                          ULONG XSize,ULONG YSize)
  6351.   {  struct Layer * Result=NULL;
  6352.      struct BitMap * RPBitMap;
  6353.      if(!(RPBitMap=AllocBitMap(XSize,YSize,8UL,0,NULL)))
  6354.        return(NULL);
  6355.      if(LI=NewLayerInfo())
  6356.        if(Result=CreateUpfrontLayer(LI,RPBitMap,0,0,
  6357.                                  XSize-1,YSize-1,LAYERSMART,NNULL))
  6358.          {  SetDrMd(Result->rp,JAM1);
  6359.             return(Result);
  6360.          }
  6361.      return(NULL);
  6362. === Cut ===
  6363. Then I use the returned result in rendering calls. Something like:
  6364. Move(Layer->rp,x1,y1); And then dispose it.
  6365. S>> AO>>>> The problem in this case is, that I do not know, and can't 
  6366. S>> AO>>>> calculate the size of future graphics.
  6367. S>> AO> hmm... I'm quite sceptical here ;-)
  6368. S>> The user draws vector graphics, and can move it on his will. Any
  6369. S>> scepticism left?
  6370. S> Partially... ;) You can "remove" all lines, curves, rectangles, ellipses,
  6371. S> text which are fully invisible and then you'll have a lot less graphics
  6372. S> to render... Things like lines etc. could be easily clipped... For
  6373. S> example, if you must render line from x0,y0 to x1,y1 you could do:
  6374. S> if( ( ( x0 < 0 ) && ( x1 < 0 ) ) || ( ( y0 < 0 ) && ( y1 < 0 ) ) || ( (
  6375. S>> = width ) && ( x1 >= width ) ) || ( ( y0 >= height ) && ( y1 >=
  6376. S> height ) ) )
  6377. S>   // line is invisible. don't render. else if( ( x0 >= 0 ) && ( y0 >= 0
  6378. S> ) && ( x0 < width ) && ( y0 < height ) && ( x1 >= 0 ) && ( y1 >= 0 ) && (
  6379. S> x1 < width ) && ( y1 < height ) )
  6380. S>   // line is visible. render without clipping.
  6381. S> else
  6382. S>   // line is partially visible. we clip it by hand (it's always faster
  6383. S> then layers.library but it'll become a problem if you would like doing
  6384. S> things which you can do using InstallClipRegion()).
  6385. S> Do you know how to clip graphics by hand?
  6386. I have a good book, concerning this topic, but I don't want to do
  6387. it by hand. 
  6388. Regards
  6389. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  6390. eGroups is now Yahoo! Groups
  6391. Click here for more details
  6392. http://click.egroups.com/1/11231/0/_/451227/_/982704761/
  6393. ---------------------------------------------------------------------_->
  6394. @ENDNODE
  6395. @NODE "Mail_195" " Re: Again clipping graphics output "
  6396. Date: 02-20-01 20:47:33
  6397. Subject: @{b}Re: Again clipping graphics output@{ub}
  6398. Hello Allan
  6399. On 19-Feb-01, you wrote:
  6400. AO>>> If the problem is only present on cgx
  6401. AO>>> high-colour screens then it's because you don't set BMF_MINPLANES
  6402. AO>>> when allocating the off-screen bitmap.
  6403. AO>> Could you describe this more precisely?
  6404. AO> Even if you supply a cgx bitmap as friend and give a depth >8 then cgx
  6405. AO> will still return a planar bitmap. But if you're dealing with vector
  6406. AO> graphics you might be better off using AllocRaster + BltTemplate.
  6407. But they tecommend using of AllocBitMap. I'm confused.
  6408. AO>> The most interesting is
  6409. AO>> the fact that, according to my user bug reports, this began to
  6410. AO>> happen as soon as I began to use layers library.
  6411. AO> Does the problem exist for both CGX and P96? CGX comes with its own
  6412. AO> layer.library but P96 only apply minor patches to the existing
  6413. AO> layers.library, so that one should be compatible with layer "hacks"
  6414. AO> but as I stated earlier you're not really allowed to mix custom
  6415. AO> layer.library use with intuition screens.
  6416. I do not mix them. I use LL for an off-screen graphics, and then 
  6417. blit the result to my rastport.
  6418. AO>> [...] What software should they use on graphics boards than?
  6419. AO> Use what ever works -- for me that's P96! ;-)
  6420. And what about screen dragging? I can't live without it.
  6421. AO>>>>>> The problem in this case is, that I do not know, and can't 
  6422. AO>>>>>> calculate the size of future graphics.
  6423. AO>>> hmm... I'm quite sceptical here ;-)
  6424. AO>> The user draws vector graphics, and can move it on his will. Any
  6425. AO>> scepticism left?
  6426. AO> I see why you might feel it quite redundant to write your own 
  6427. AA> clipping
  6428. AO> functions but I fail to see it as impossible.
  6429. It is possible, of course, but I'll do that only if I'll completely
  6430. fail to use LL.
  6431. Regards
  6432. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  6433. eGroups is now Yahoo! Groups
  6434. Click here for more details
  6435. http://click.egroups.com/1/11231/0/_/451227/_/982704767/
  6436. ---------------------------------------------------------------------_->
  6437. @ENDNODE
  6438. @NODE "Mail_196" " Re: includes and stuff "
  6439. Date: 02-20-01 21:02:27
  6440. Subject: @{b}Re: includes and stuff@{ub}
  6441. Hiya Joris,
  6442. On 20-Feb-01, you wrote:
  6443. > So i found out, i needed the string.h include to be able to use the strcat
  6444. > function, again i don't know what to do: put a #include <string.h> in this
  6445. > myfunctions.c file, or should it be in my myfunctions.h file...
  6446.    Put them in the files where they are needed.  Your .h should include any
  6447. typedefs (that need to be 'public') and the function declarations.
  6448.    Your .c the code.
  6449.    If string.h is only needed for strcat() then stick in the .c; again based
  6450. on your code the asl/exec side of things are only needed in the .c so put
  6451. the includes there.
  6452.    If for example the exec part was needed for a type of parameter I would
  6453. include exec.h in both the .h and .c.
  6454.    As for the library side of things.  It's up to you; there is nothing
  6455. wrong with opening asl.library as you do; for something like asl.library or
  6456. openurl.library I personally think it is better to open it when needed.
  6457.    However for something like utility.library I think it's better to open it
  6458. at the start.
  6459. > Thanks for any help and for all people who reacted to my IDCMP question.
  6460.    The above is what I got out of my c++ book.  or words to that effect
  6461. anyway.  I have ben doing things this way for years and don't have any
  6462. problems.
  6463. Kind regards...
  6464. Cremlin Software - http://www.cremlinsoftware.org
  6465. Founder, lead programmer - ghandi@cremlinsoftware.org
  6466. Production, programmer - anj@cremlinsoftware.org
  6467. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  6468. eGroups is now Yahoo! Groups
  6469. Click here for more details
  6470. http://click.egroups.com/1/11231/0/_/451227/_/982699565/
  6471. ---------------------------------------------------------------------_->
  6472. @ENDNODE
  6473. @NODE "Mail_197" " Re: Re: Members Postings Going to Aminet "
  6474. Date: 02-20-01 23:17:15
  6475. Subject: @{b}Re: Re: Members Postings Going to Aminet@{ub}
  6476. ----- Original Message -----
  6477. From: "Fritsch Alexander" <alexander.fritsch@icn.siemens.de>
  6478. To: <amiga-c@yahoogroups.com>
  6479. Sent: Monday, February 19, 2001 9:49 AM
  6480. Subject: [amiga-c] Re: Members Postings Going to Aminet
  6481. > For the spammer question:
  6482. > Do you really think they look into every lha-File on Aminet? I doubt that.
  6483. I think they scan freely available text-files only.
  6484. I very rarely get spam mail and I've been on this list for a long time. I'm
  6485. quite certain that none of the spam I have received originated from someone
  6486. grabbing my email address out of any aminet archives.
  6487.   Regards Rod
  6488. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  6489. eGroups is now Yahoo! Groups
  6490. Click here for more details
  6491. http://click.egroups.com/1/11231/0/_/451227/_/982707448/
  6492. ---------------------------------------------------------------------_->
  6493. @ENDNODE
  6494. @NODE "Mail_198" " Amiga types and strings "
  6495. Date: 02-20-01 23:37:44
  6496. Subject: @{b}Amiga types and strings@{ub}
  6497. Hello,
  6498. First of all i would like to thank all the people that helped me with
  6499. include&organizing problem. I think i have got it now: in the headerfile
  6500. you only put info the user would need to use the functions in it. And in
  6501. the .c file you put everything that's needed to make the function run. 
  6502. I also looked at the OO things but they got a little to far for what i
  6503. needed, i will use such stuff when i need to do some JAVA or Delphi at
  6504. college :) But thanks anyway.
  6505. Now a question again: i'm quit confused with all the types there are in the
  6506. AmigaOS in comparison to the ansi-c types, and how to cast/ change them or
  6507. whatever. I'll give an example that's with my function i was writing:
  6508. the proto for it is: char* getFilename(char* title, char* location)
  6509. It's about those last two, i want to use them to give the user some abillty
  6510. to change the "look" of the ASLRequester, the first one is the title of the
  6511. Requester and the second one is the place where the requester should start,
  6512. for example in the dir "Libs".
  6513. In want to use them in the part where i init my asl struct, it looks like
  6514. this:
  6515. if (fr = (struct FileRequester *) 
  6516.                             AllocAslRequest(ASL_FileRequest,
  6517. ASLFR_TitleText,  title,
  6518.                                                      ASLFR_InitialDrawer,   
  6519. location, TAG_DONE))
  6520. I first tried it this way, but StormC gave an error: title is an illegal
  6521. argument. So i did some sniffing in the includes and found out that the two
  6522. items in question should be of the type STRPTR.
  6523. AFAIK this i just an Amiga version of the char * type? Or is it something
  6524. else?
  6525. So i tried it with a cast-->   ASLFR_TitleText,  (STRPTR) title, but no
  6526. effort. I don't know what to do now... isn't there a place on the Dev2.1 CD
  6527. where i can read about all these types and how to handle with them
  6528. correctly.... :) 
  6529. I even tried changing the prototype to (STRPTR title, STRPT location)
  6530. doesn't help at all...
  6531. More suggestions please :) Let's make this maillinglist a little bit more
  6532. alive:) and sorry i can't help you with some things, have lot of learning
  6533. to do with the AmigaOS:(
  6534. (In the end i hope i can write some usefull and fun things in C:) 
  6535. Groeten,
  6536. Joris Kempen - webmaster
  6537. visit www.detrekkers.com
  6538. Always remember that you are unique.  Just like everyone else.
  6539. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  6540. eGroups is now Yahoo! Groups
  6541. Click here for more details
  6542. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  6543. ---------------------------------------------------------------------_->
  6544. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  6545. @ENDNODE
  6546. @NODE "Mail_199" " Re: Again clipping graphics output "
  6547. Date: 02-21-01 01:51:41
  6548. Subject: @{b}Re: Again clipping graphics output@{ub}
  6549. Czesc Serge!
  6550. Dnia 20-Feb-01, Serge Tumanyan napisa
  6551. > Here are some parts. This is the init procedure.
  6552. > === Cut ===
  6553. > static struct Layer * PrepareLayer(struct Layer_Info * LI,
  6554. >                                         ULONG XSize,ULONG YSize)
  6555. >  {  struct Layer * Result=NULL;
  6556. >     struct BitMap * RPBitMap;
  6557. >     if(!(RPBitMap=AllocBitMap(XSize,YSize,8UL,0,NULL)))
  6558. >       return(NULL);
  6559. >     if(LI=NewLayerInfo())
  6560. Why you're passing LayerInfo pointer to PrepareLayer() function if you're
  6561. creating new one? It doesn't make sense...
  6562. >       if(Result=CreateUpfrontLayer(LI,RPBitMap,0,0,
  6563. >                                 XSize-1,YSize-1,LAYERSMART,NNULL))
  6564. >         {  SetDrMd(Result->rp,JAM1);
  6565. >            return(Result);
  6566. >         }
  6567. >     return(NULL);
  6568. > === Cut ===
  6569. > Then I use the returned result in rendering calls. Something like:
  6570. > Move(Layer->rp,x1,y1); And then dispose it.
  6571. I'm assuming that your code for disposing layers looks like:
  6572. void CleanupLayer( struct Layer *layer )
  6573.     struct BitMap *bitmap;
  6574.     struct Layer_Info *layerinfo;
  6575.     if( layer )
  6576.     {
  6577.         bitmap = layer->rp->BitMap;
  6578.         layerinfo = layer->LayerInfo;
  6579.         WaitBlit();
  6580.         DeleteLayer( NULL, layer );
  6581.         FreeBitMap( bitmap );
  6582.         DisposeLayerInfo( layerinfo );
  6583.     }
  6584. It should work... Maybe bug is inside your rendering functions... Please send
  6585. attached executable to your betatesters and ask them is everything ok (no
  6586. "jerky" pointers etc.)
  6587. > I have a good book, concerning this topic, but I don't want to do
  6588. > it by hand. 
  6589. So you know that it's quite easy and it's faster than layers.library...
  6590. Regards!
  6591. Can your ImageFX paint like bitmap painters?
  6592. Download: gfx/ifx/REDFiX.lha, ftp.novadesign.com
  6593. Przemyslaw 'SENSEI' Gruchala
  6594. code/gfx2d/gfx3d/webmaster
  6595. Amiga 1200
  6596. Apollo 1240/33 MHz, 18 MB RAM, BTC 33.6 bps
  6597. HDD 3.2 GB, HDD 520 MB, CD x12
  6598. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  6599. eGroups is now Yahoo! Groups
  6600. Click here for more details
  6601. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  6602. ---------------------------------------------------------------------_->
  6603. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  6604. @ENDNODE
  6605. @NODE "Mail_200" " Re: Re: Again clipping graphics output "
  6606. Date: 02-21-01 08:55:41
  6607. Subject: @{b}Re: Re: Again clipping graphics output@{ub}
  6608. On Tue, Feb 20, 2001 at 10:47:33PM +0300, Serge Tumanyan wrote:
  6609. > AO> Use what ever works -- for me that's P96! ;-)
  6610. > And what about screen dragging? I can't live without it.
  6611.   You believe that. I am using P96 since 4 years and I rarely miss
  6612.   "draggable screens".
  6613.   Gunther
  6614. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  6615. eGroups is now Yahoo! Groups
  6616. Click here for more details
  6617. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  6618. ---------------------------------------------------------------------_->
  6619. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  6620. @ENDNODE
  6621. @NODE "Mail_201" " Re: Members Postings Going to Aminet "
  6622. Date: 02-21-01 12:03:16
  6623. Subject: @{b}Re: Members Postings Going to Aminet@{ub}
  6624. On Tue, 20 Feb 2001 AD, Stephen Illingworth wrote:
  6625. > Hello Colin
  6626. > On 19-Feb-01, you wrote:
  6627. >> Is everyone aware that all the trafic on this list is being 
  6628. >> compiled in Amigaguide format & posted to Aminet,
  6629. >> complete with everyone's email address...
  6630. > Yes and I think it's a brilliant idea. It's great having  
  6631. > (offline)  copies
  6632. > of  all  previous  mails  for  reference purposes. Many a 
  6633. > time I have had a
  6634. > problem which was solved by grepping the archives.
  6635. I can't argue with that.
  6636. >> I for one never new this was occuring until tonight & wish 
  6637. >> someone had mentioned it beforehand, otherwise I would
  6638. >> have not given my permission or have joined if I knew...
  6639. > Why? And besides this  was  discussed  nearly  two  years  
  6640. > ago  and  nobody
  6641. > objected.
  6642. Two years ago!?! Some of us weren't even on the list at that
  6643. time! It would have been nice to be warned in advance that
  6644. someone was collecting and cataloguing every post to this list.
  6645. Rod MacLean                      | Roderick_MacLean@agilent.com
  6646. Developer - Agilent Technologies | Tel:  +44 (0)131 331-7304
  6647. ** My views do not necessarily reflect the views of Agilent! **
  6648. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  6649. eGroups is now Yahoo! Groups
  6650. Click here for more details
  6651. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  6652. ---------------------------------------------------------------------_->
  6653. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  6654. @ENDNODE
  6655. @NODE "Mail_202" " Re: Tasks vs. Threads "
  6656. Date: 02-21-01 12:06:59
  6657. Subject: @{b}Re: Tasks vs. Threads@{ub}
  6658.  Hi Stephen,
  6659. > Threads are often referred to as light weight processes (processes are
  6660. > the same as tasks) and are identical in many respects to real
  6661. > processes. However, they confer several advantages. The most
  6662. > important, is the reduced overhead on the operating system - the
  6663. > effort required to create a new process and to context switch is
  6664. > completely avoided..
  6665. > Instead, the parent process (threads are always controlled by a parent
  6666. > process) performs the thread context switching itself - or if you use
  6667. > pthreads or similar, the library code will do this. In other words,
  6668. > threads are switched within the time slice available to the parent
  6669. > process.
  6670. Ok, thanx for the explanation.
  6671. > I personally don't see the point of them on the Amiga, as the AmigaOSs
  6672. > scheduler works just great. The reason pthreads exists at all is
  6673. > because many UNIX implementations have "inefficient" schedulers (they
  6674. > do more work than they need to) and certain types of process benefit
  6675. > greatly from the reduced overhead of threads.
  6676. Just another thing, multi-processor ready programs are refered as
  6677. multi-threading programs, this sounds like you can open a new thread on
  6678. each different processor (just like I could open a Task on my 68k and
  6679. another on the PowerPC and make them run together), is this true?
  6680.  Gabriele
  6681. TiscaliNet, libero accesso ad Internet.
  6682. http://www.tiscalinet.it
  6683. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  6684. eGroups is now Yahoo! Groups
  6685. Click here for more details
  6686. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  6687. ---------------------------------------------------------------------_->
  6688. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  6689. @ENDNODE
  6690. @NODE "Mail_203" " Re: Tasks vs. Threads "
  6691. Date: 02-21-01 12:07:45
  6692. Subject: @{b}Re: Tasks vs. Threads@{ub}
  6693.  Hi Steven
  6694. > I think memory protection is the difference you are looking for
  6695. > between the Amiga and the other guys. Threads run in the memory space
  6696. > of the parent process and almost always offer no memory protection
  6697. > (hence the term "lightweight"). Processes do have memory protection
  6698. > and are prevented from clobbering each other. Memory protection adds
  6699. > even more complexity when you need to share memory between two
  6700. > processes and usually requires the use of "handles" instead of
  6701. > pointers. Threads can simply pass a pointer to access their shared
  6702. > memory space. Needless to say, the topic of memory protection is much
  6703. > more complex than you'd initially believe so let's not go there.
  6704. I didn't have thought to that, so the extra-overhead on the operating
  6705. system is generated by the memory handling when using multiple tasks
  6706. instead of multiple threads.
  6707. > Given that the AmigaOS lacks memory protection you can think of
  6708. > AmigaOS Tasks as Threads. You can even share the same memory space and
  6709. > pass pointers around without any restrictions just like "real"
  6710. > threads.
  6711. > The more 'portable' approach is to use POSIX threads (pthreads) but
  6712. > even they are no guarantee that you won't have porting problems.
  6713. > There is a port of the pthreads package for the Amiga available
  6714. > somewhere from http://www.geekgadgets.org but I've never tried it so I
  6715. > can't say anything more about it.
  6716. POSIX compliant threads will be nice, even if I think geekgadgets
  6717. related things are a little bit too overburdened for me, I'll take a
  6718. look at it anyway. Nobody knows if threads.library is POSIX compliant?
  6719. It looks quite simple to use.
  6720. > Can anyone say whether the new AmigaDE supports pthreads or not?
  6721. I remember reading in a discussion in devicetop.com's forums that
  6722. AmigaDE should be 100% POSIX compliant.
  6723.  Gabriele
  6724. TiscaliNet, libero accesso ad Internet.
  6725. http://www.tiscalinet.it
  6726. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  6727. eGroups is now Yahoo! Groups
  6728. Click here for more details
  6729. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  6730. ---------------------------------------------------------------------_->
  6731. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  6732. @ENDNODE
  6733. @NODE "Mail_204" " Re: Amiga types and strings "
  6734. Date: 02-21-01 15:27:39
  6735. Subject: @{b}Re: Amiga types and strings@{ub}
  6736. Hi Joris
  6737. > the proto for it is: char* getFilename(char* title, char* location)
  6738. [...]
  6739. > In want to use them in the part where i init my asl struct, it looks like
  6740. > this:
  6741. > if (fr = (struct FileRequester *) 
  6742. >                             AllocAslRequest(ASL_FileRequest,
  6743. > ASLFR_TitleText,  title,
  6744. > I first tried it this way, but StormC gave an error: title is an illegal
  6745. > argument. So i did some sniffing in the includes and found out that the two
  6746. [...]
  6747. > So i tried it with a cast-->   ASLFR_TitleText,  (STRPTR) title, but no
  6748. > effort. I don't know what to do now... isn't there a place on the Dev2.1 CD
  6749. The reason you are getting errors is because you are trying to put char * or 
  6750. STRPTR into a taglist; all items in a taglist are ULONG's, so your cast would 
  6751. need to be "(ULONG) title".
  6752. > where i can read about all these types and how to handle with them correctly....
  6753. Hmm, there aren't too many Amiga specific types are there? Not that much more 
  6754. than ANSI-C, and it's unlikely you'll need to use them all anyway.
  6755. The numeric types are basically just so you have a single type you can use for 
  6756. making variables a specific number of bits (BYTE = 8 bit numeric, WORD = 16 bit 
  6757. numeric, LONG = 32 bit numeric). A "U" in front of the numeric type means it is 
  6758. unsigned.
  6759. The pointer types are similarly straightforward for normal use. APTR is a void 
  6760. pointer to memory (i.e. a non-specific type pointer), BPTR and BSTR are BCPL 
  6761. type pointers; the former is a general pointer and the latter is a BCPL string 
  6762. pointer (used by AmigaDOS) and STRPTR is a pointer to a null terminated string 
  6763. (as most strings will be).
  6764. Since APTR's are of void type, you cannot do any math with them, or access 
  6765. memory at that pointer. You need to cast them to a specific type first.
  6766. Any other pointers are likely to be pointers to specific OS types, such as 
  6767. struct Window *, struct Screen *, etc. If you are working mostly with OS 
  6768. functions, the choice of type will pretty much will already be made for you. If 
  6769. you are going to use these types for your own routines, just choose whatever is 
  6770. most appropriate (thinking about upper limits of numbers you will need to 
  6771. store, etc, what contents of memory pointed to will be).
  6772. |) /\ \/ ][ |)   |\/| c |\/| ][ |\| |\|   |   dave@blitz-2000.co.uk
  6773.    http://members.nbci.com/david_mcminn   |   ICQ=16827694
  6774. Work is the curse of the drinking class.
  6775. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  6776. eGroups is now Yahoo! Groups
  6777. Click here for more details
  6778. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  6779. ---------------------------------------------------------------------_->
  6780. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  6781. @ENDNODE
  6782. @NODE "Mail_205" " Re: Amiga types and strings "
  6783. Date: 02-21-01 16:37:49
  6784. Subject: @{b}Re: Amiga types and strings@{ub}
  6785.  Hi Joris,
  6786. > So i tried it with a cast--> ASLFR_TitleText, (STRPTR) title, but no
  6787. > effort. I don't know what to do now... isn't there a place on the
  6788. > Dev2.1 CD where i can read about all these types and how to handle
  6789. > with them correctly.... :)
  6790. Sure, take a look in exec/types.h it contains all the typecasts and
  6791. #defines that AmigaOS uses for masking the standard ANSI types.
  6792. See ya
  6793.  Gabriele
  6794. TiscaliNet, libero accesso ad Internet.
  6795. http://www.tiscalinet.it
  6796. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  6797. eGroups is now Yahoo! Groups
  6798. Click here for more details
  6799. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  6800. ---------------------------------------------------------------------_->
  6801. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  6802. @ENDNODE
  6803. @NODE "Mail_206" " Re: Amiga types and strings "
  6804. Date: 02-21-01 17:30:42
  6805. Subject: @{b}Re: Amiga types and strings@{ub}
  6806. --- Joris Kempen <Trekker@studenten.net> a 
  6807. crit : >
  6808. Hello,
  6809. > In want to use them in the part where i init my asl
  6810. > struct, it looks like
  6811. > this:
  6812. > if (fr = (struct FileRequester *) 
  6813. >                            
  6814. > AllocAslRequest(ASL_FileRequest,
  6815. > ASLFR_TitleText,  title,
  6816. >                                                     
  6817. > ASLFR_InitialDrawer,   
  6818. > location, TAG_DONE))
  6819. > I first tried it this way, but StormC gave an error:
  6820. > title is an illegal
  6821. > argument. So i did some sniffing in the includes and
  6822. > found out that the two
  6823. > items in question should be of the type STRPTR.
  6824. > AFAIK this i just an Amiga version of the char *
  6825. > type? Or is it something
  6826. > else?
  6827. No, the problem is all "TAG" are defined as ULONG (or
  6828. something like that, i don't have my amis at works :-(
  6829. So, it title is STRPTR or char *, you are trying to
  6830. pass a pointer instead of a ULONG.
  6831. So the solution is to cast to a ULONG. It should be
  6832. also a typedef for TAG but I don't remember if it
  6833. exists and its name :-( Have a look into the AutoDOC.
  6834. Laurent
  6835. =====
  6836. The misspelling master is on the Web.
  6837.    _________
  6838.   /        /(
  6839.  /  Dico  / /    100 % Dictionnary Free !
  6840. /________/ /         
  6841. (#######( /
  6842. Quoi, des fautes d'orthographe! Pas possible ;-D.
  6843. __________________________________________________
  6844. Do You Yahoo!?
  6845. Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/
  6846. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  6847. eGroups is now Yahoo! Groups
  6848. Click here for more details
  6849. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  6850. ---------------------------------------------------------------------_->
  6851. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  6852. @ENDNODE
  6853. @NODE "Mail_207" " Re: Re: Tasks vs. Threads "
  6854. Date: 02-21-01 17:47:39
  6855. Subject: @{b}Re: Re: Tasks vs. Threads@{ub}
  6856. Hi all,
  6857. [...]
  6858. > > Instead, the parent process (threads are always
  6859. > controlled by a parent
  6860. > > process) performs the thread context switching
  6861. > itself - or if you use
  6862. > > pthreads or similar, the library code will do
  6863. > this. In other words,
  6864. > > threads are switched within the time slice
  6865. > available to the parent
  6866. > > process.
  6867. On Unix, the main implication is parent and sons
  6868. processes runs into the same memory environment (in
  6869. MMY point of view), so no memory context switch is
  6870. need.
  6871. So in many points, all AmigaOS tasks are thread.
  6872. > Just another thing, multi-processor ready programs
  6873. > are refered as
  6874. > multi-threading programs, this sounds like you can
  6875. > open a new thread on
  6876. > each different processor (just like I could open a
  6877. > Task on my 68k and
  6878. > another on the PowerPC and make them run together),
  6879. > is this true?
  6880. multi-threading means that the same code should be
  6881. shared b/w all instance of a program. It's like PURE
  6882. executables on AmigaOS.
  6883. Laurent
  6884. =====
  6885. The misspelling master is on the Web.
  6886.    _________
  6887.   /        /(
  6888.  /  Dico  / /    100 % Dictionnary Free !
  6889. /________/ /         
  6890. (#######( /
  6891. Quoi, des fautes d'orthographe! Pas possible ;-D.
  6892. __________________________________________________
  6893. Do You Yahoo!?
  6894. Yahoo! Auctions - Buy the things you want at great prices! http://auctions.yahoo.com/
  6895. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  6896. eGroups is now Yahoo! Groups
  6897. Click here for more details
  6898. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  6899. ---------------------------------------------------------------------_->
  6900. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  6901. @ENDNODE
  6902. @NODE "Mail_208" " League fixture generation. "
  6903. Date: 02-21-01 22:55:11
  6904. Subject: @{b}League fixture generation.@{ub}
  6905. Hi All,
  6906. I need an algorythmn to generate fixtures for a sporting league. All teams
  6907. must play each other twice (home-away). The number of teams will always be
  6908. even and >=20. All teams will play once on each occasion so the number of
  6909. occasions would be (noOfTeams-1)*2. 
  6910. Sorry if this is a bit OT. I`ve given myself headaches trying to work it out
  6911. and thought someone here might enjoy(?) the challenge.
  6912. any persons, living or dead, are entirely coincidental.    
  6913. Tim Hanson,
  6914. by the River,Canterbury, Kent.
  6915. Amiga A1200T,`040/25,603e/160,32MB Fast,BVisionPPC,
  6916. 8.4GB IDE HD,ZIP SCSI,RENO x2CD SCSI,Pace 56K
  6917. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  6918. eGroups is now Yahoo! Groups
  6919. Click here for more details
  6920. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  6921. ---------------------------------------------------------------------_->
  6922. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  6923. @ENDNODE
  6924. @NODE "Mail_209" " Anyone interested in writing a C-Amiga book? "
  6925. Date: 02-21-01 13:59:50
  6926. Subject: @{b}Anyone interested in writing a C-Amiga book?@{ub}
  6927. Hello.
  6928. I was here thinking, whether someone or some would be interested in writing
  6929. Amiga C-Book in english.
  6930. As it seems there are lot of people who would really appreciate such a book,
  6931. which would tell how to use C in amiga specific way.
  6932. There could be more than just one writer.
  6933. One could for example concentrate on sound, when other would concentrate on
  6934. onw part of graphics etc.
  6935. And as i already have a company then i would publish it and of course give
  6936. percents to writers from sales.
  6937. So first of all.
  6938. Is there people who are interested in writing it?
  6939. secondly. Is there people who are interested in such a book if its done, and
  6940. reasonably priced?
  6941. I don`t know publishing prices yet, as i have to ask them first so i can`t
  6942. give any information about the price it would be when possibly done.
  6943. writer interested people, please contact me through this mailing list or
  6944. from: ugalabugala@nic.fi
  6945. comments please.
  6946. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  6947. eGroups is now Yahoo! Groups
  6948. Click here for more details
  6949. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  6950. ---------------------------------------------------------------------_->
  6951. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  6952. @ENDNODE
  6953. @NODE "Mail_210" " Re: Members Postings Going to Aminet "
  6954. Date: 02-21-01 23:32:19
  6955. Subject: @{b}Re: Members Postings Going to Aminet@{ub}
  6956. Hi Colin 
  6957. Colin Wenzel wrote this on 19-Feb-01 at 16:15:29
  6958. > Is everyone aware that all the trafic on this list is being 
  6959. > compiled in Amigaguide format & posted to Aminet,
  6960. > complete with everyone's email address...
  6961. > I for one never new this was occuring until tonight & wish 
  6962. > someone had mentioned it beforehand, otherwise I would
  6963. > have not given my permission or have joined if I knew...
  6964. > It states on the egroup that archives are for *members only,*
  6965. > Members only,  to me means,  NOT the general public....
  6966. Appologies to anyone who didn`t know about this. It was stated on the list
  6967. some time ago that this would happen. I`ve been compiling the guides for some
  6968. months now having taken it over from Roger Light.
  6969. In retrospect it would probably have been a good idea to mention it regularly
  6970. on the list. Again: Sorry. 
  6971. I have changed the script so that it no longer includes addresses. I`m
  6972. checking the fesability of removing the addresses from the older guides but
  6973. this may take some time as I`m busy ATM.
  6974. The guides were not intended for consumption by the general public, rather by
  6975. member of the Amiga Community. Before I had access to the internet I
  6976. regularly read the archive of various programming lists on the Amiga Format
  6977. CD and found them very useful. Hopefully few spammers would search the Aminet
  6978. looking in .lha files for e-mail addresses.
  6979. any persons, living or dead, are entirely coincidental.    
  6980. Tim Hanson,
  6981. by the River,Canterbury, Kent.
  6982. Amiga A1200T,`040/25,603e/160,32MB Fast,BVisionPPC,
  6983. 8.4GB IDE HD,ZIP SCSI,RENO x2CD SCSI,Pace 56K
  6984. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  6985. eGroups is now Yahoo! Groups
  6986. Click here for more details
  6987. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  6988. ---------------------------------------------------------------------_->
  6989. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  6990. @ENDNODE
  6991. @NODE "Mail_211" " Re: Pseudo-OO in C [was includes and stuff] "
  6992. Date: 02-21-01 23:44:17
  6993. Subject: @{b}Re: Pseudo-OO in C [was includes and stuff]@{ub}
  6994. Hi Ian,
  6995. > You can take this one step further and make object oriented libraries 
  6996. > (yes... in C). You can effectively hide private data internal to your 
  6997. > library in the following way:
  6998. [...]
  6999. Yep, tricks like these work well in some situations - and you can take this
  7000. a step further still with function pointers.  For instance, in a graphics
  7001. program I was working on recently, the graphics subsystem was accessed
  7002. through a structure like this:
  7003. struct DisplayContext
  7004.   void (*Dispose)(struct DisplayContext *dc);
  7005.   void (*Handle)(struct DisplayContext *dc,long signals);
  7006.   void (*Update)(struct DisplayContext *dc);
  7007.   void (*Render)(struct DisplayContext *dc,struct RenderContext *rc);
  7008.   void (*SetGamme)(struct DisplayContext *dc,float gamma);
  7009.   long signals;
  7010.   void *Specifics;
  7011. The big advantage here is that the program can be made to use any one of the
  7012. four drivers (AGA, HAM, CGFX-8 and CGFX-24) simply by calling the
  7013. appropriate Create() function.
  7014. (Another way of achieving the same thing would have been to use loadable
  7015. modules, or shared libraries, but this approach fitted in well with the
  7016. design of the rest of the program).
  7017. All the best,
  7018. Alastair M. Robinson, email:blackfive@fakenhamweb.co.uk
  7019.  -- You know you've been hacking too long when...
  7020. ...in non-computer related situation you start thinking that whatever you
  7021. are doing, it could be done more easily in a shell script.
  7022. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7023. eGroups is now Yahoo! Groups
  7024. Click here for more details
  7025. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7026. ---------------------------------------------------------------------_->
  7027. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7028. @ENDNODE
  7029. @NODE "Mail_212" " Re: Again clipping graphics output "
  7030. Date: 02-22-01 01:29:32
  7031. Subject: @{b}Re: Again clipping graphics output@{ub}
  7032. Hello Sensei
  7033. On 21-Feb-01, you wrote:
  7034. S>> Here are some parts. This is the init procedure.
  7035. [...]
  7036. S> So you know that it's quite easy and it's faster than layers.library...
  7037. Sorry, I'm curing my eyes now, and the doctor forbid me using 
  7038. my computer for a month. I'll write to you privetely a month later.
  7039. Regards
  7040. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7041. eGroups is now Yahoo! Groups
  7042. Click here for more details
  7043. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7044. ---------------------------------------------------------------------_->
  7045. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7046. @ENDNODE
  7047. @NODE "Mail_213" " Re: League fixture generation. "
  7048. Date: 02-22-01 21:45:18
  7049. Subject: @{b}Re: League fixture generation.@{ub}
  7050. Hello Tim,
  7051. > I need an algorythmn to generate fixtures for a sporting league. All
  7052. > teams must play each other twice (home-away). The number of teams will
  7053. > always be even and >=20. All teams will play once on each occasion so
  7054. > the number of occasions would be (noOfTeams-1)*2.
  7055. So the result should be an n times n matrix where each cell tells on
  7056. which occasion the two teams (marked by row and column) should play.
  7057. E.g. if we denote the teams by letters and the occasions by numbers the
  7058. result for four teams would be:
  7059.       A B C D
  7060.     A 
  7061.  1 2 3
  7062.     B 4 
  7063.     C 5 6 
  7064.     D 6 5 4 
  7065. I wonder if this assignment problem can be solved in polynomial time.
  7066. I tried a greedy approach which ran in expected O(n
  7067. ) time, but for 20
  7068. teams it assigned them to 53 different occasions, where the optimal
  7069. should be only 38. For 40 teams the result was 109, rather than the
  7070. theoretical 78.
  7071. If you need an optimal solution (or just something better than my greedy
  7072. approach) then I wouldn't mind help you develop a metaheuristic which
  7073. could do better.
  7074. But I would imagine that your problem is a common problem, so it would
  7075. probably be wise to search the net first, as it may already be solved
  7076. by a dozen different people ;-)
  7077. > Sorry if this is a bit OT. I`ve given myself headaches trying to work
  7078. > it out and thought someone here might enjoy(?) the challenge.
  7079. I wonder if we should broaden the focus of this list?
  7080. Kind regards Allan
  7081. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7082. eGroups is now Yahoo! Groups
  7083. Click here for more details
  7084. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7085. ---------------------------------------------------------------------_->
  7086. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7087. @ENDNODE
  7088. @NODE "Mail_214" " Re: Anyone interested in writing a C-Amiga book? "
  7089. Date: 02-22-01 21:56:44
  7090. Subject: @{b}Re: Anyone interested in writing a C-Amiga book?@{ub}
  7091. Hello Dr.BrainDamage,
  7092. > [...]
  7093. > As it seems there are lot of people who would really appreciate such a
  7094. > book, which would tell how to use C in amiga specific way.
  7095. Does that mean there's actually a request for such a book?
  7096. > And as i already have a company then i would publish it and of course
  7097. > give percents to writers from sales.
  7098. How much would you imagine that the book should sell to break even?
  7099. > Is there people who are interested in writing it?
  7100. I wouldn't write such a book all by myself, but I'd gladly contribute. I
  7101. would however be interested in writing a book about MUI programming,
  7102. which some have requested me to do (I even started the table of
  7103. contents ;-) ), but I didn't think the marked was big enough to justify
  7104. my efforts (I'm not talking about profit but merely the fact that it
  7105. wouldn't be good for my self esteem if I spent e.g. a month on a book
  7106. that only 10 people would read).
  7107. > secondly. Is there people who are interested in such a book if its
  7108. > done, and reasonably priced?
  7109. It would probably be a good idea to collect requests about which topics
  7110. people would like to read about, as I imagine that even experienced
  7111. Amiga developers could be tempted to buy the book if it had the proper
  7112. contents. But perhaps that would make it more of a FAQ than a book...
  7113. Kind regards Allan
  7114. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7115. eGroups is now Yahoo! Groups
  7116. Click here for more details
  7117. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7118. ---------------------------------------------------------------------_->
  7119. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7120. @ENDNODE
  7121. @NODE "Mail_215" " Re: Again clipping graphics output "
  7122. Date: 02-22-01 22:06:00
  7123. Subject: @{b}Re: Again clipping graphics output@{ub}
  7124. Hello Serge,
  7125. >> [...] But if you're dealing with vector graphics you might
  7126. >> be better off using AllocRaster + BltTemplate.
  7127. > But they tecommend using of AllocBitMap. I'm confused.
  7128. AllocRaster allocates a single bitplane. You can blit this to the screen
  7129. in your desired colour using BltTemplate().
  7130. If you instead allocate a bitmap you waste 24-32 times the memory if the
  7131. target screen is true colour (and you allocate it as a friend bitmap),
  7132. and you also need to move only 1/24 or 1/32 the amount of bytes... but
  7133. I'm not really sure about the speed advantage since P96 seems to give
  7134. back a bitplane located in chip-mem when calling AllocRaster().
  7135. Though some guy at the MUI list switched from BltBitMapRastPort() to
  7136. BltTemplate() and IIRC did notice a minor speed advantage...
  7137. >> [...] as I stated earlier you're not really allowed to mix custom
  7138. >> layer.library use with intuition screens.
  7139. > I do not mix them. I use LL for an off-screen graphics, and then 
  7140. > blit the result to my rastport.
  7141. As a precaution I choose to interpret the warning (about intuition) as
  7142. including graphics.library, perhaps that's not how it was ment, but
  7143. better safe than sorry...
  7144. Kind regards Allan
  7145. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7146. eGroups is now Yahoo! Groups
  7147. Click here for more details
  7148. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7149. ---------------------------------------------------------------------_->
  7150. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7151. @ENDNODE
  7152. @NODE "Mail_216" " Re: Anyone interested in writing a C-Amiga book? "
  7153. Date: 02-22-01 22:54:56
  7154. Subject: @{b}Re: Anyone interested in writing a C-Amiga book?@{ub}
  7155. On 22-Feb-01 Allan Odgaard wrote:
  7156. > I wouldn't write such a book all by myself, but I'd gladly contribute. I
  7157. > would however be interested in writing a book about MUI programming,
  7158. > which some have requested me to do (I even started the table of
  7159. I think for general topics the Amiga Guru Book should be quite good.
  7160. I recently got one cheaply but haven't looked very much into it until now.
  7161. There should be some new things or things which have changed which aren't
  7162. described in the book, but I think the need for general books isn't too big.
  7163. However a book about MUI programming sounds very interesting to me, I think
  7164. there aren't any books on this topic.
  7165. I'm also sure that you are the right author for this topic, the idea sounds
  7166. very promising.
  7167. Bye, Chris
  7168.             __
  7169.            ///
  7170.       __  ///  Amiga 4000T 040/40      Team *AMIGA*
  7171.       \\\///
  7172.        \XX/    http://www.riednet.wh.tu-darmstadt.de/~chris/
  7173. Date: December 9, 1998 REDMOND, WA (API) ---
  7174. MICROSOFT (MSFT) announced today that the official
  7175. release date for the new operating system "Windows 2000"
  7176. will be delayed until the second quarter of 1901
  7177. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7178. eGroups is now Yahoo! Groups
  7179. Click here for more details
  7180. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7181. ---------------------------------------------------------------------_->
  7182. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7183. @ENDNODE
  7184. @NODE "Mail_217" " Re: Anyone interested in writing a C-Amiga book? "
  7185. Date: 02-23-01 00:56:46
  7186. Subject: @{b}Re: Anyone interested in writing a C-Amiga book?@{ub}
  7187. ----- Original Message -----
  7188. From: "Dr.BrainDamage" <drbraindamage@nic.fi>
  7189. To: "AmigaC-List" <amiga-c@yahoogroups.com>
  7190. Sent: Thursday, February 22, 2001 6:22 AM
  7191. Subject: [amiga-c] Anyone interested in writing a C-Amiga book?
  7192. > Hello.
  7193. > I was here thinking, whether someone or some would be interested in
  7194. writing
  7195. > Amiga C-Book in english.
  7196. > And as i already have a company then i would publish it and of course give
  7197. > percents to writers from sales.
  7198. Are you independantly wealthy? Can you afford to lose a lot of money?
  7199. Because you sure wouldn't make any...
  7200. > So first of all.
  7201. > Is there people who are interested in writing it?
  7202. Not likely.
  7203. > secondly. Is there people who are interested in such a book if its done,
  7204. > reasonably priced?
  7205. Probably a few, but certainly nowhere near enough to justify the time,
  7206. effort and money required to make it happen. And you can count on it they
  7207. wouldn't be willing to pay much for a copy either.
  7208. Regards Rod
  7209. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7210. eGroups is now Yahoo! Groups
  7211. Click here for more details
  7212. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7213. ---------------------------------------------------------------------_->
  7214. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7215. @ENDNODE
  7216. @NODE "Mail_218" " Re: Re: Anyone interested in writing a C-Amiga book? "
  7217. Date: 02-23-01 01:14:35
  7218. Subject: @{b}Re: Re: Anyone interested in writing a C-Amiga book?@{ub}
  7219. ----- Original Message -----
  7220. From: "Allan Odgaard" <Duff@DIKU.DK>
  7221. To: <amiga-c@yahoogroups.com>
  7222. Sent: Thursday, February 22, 2001 2:10 PM
  7223. Subject: [amiga-c] Re: Anyone interested in writing a C-Amiga book?
  7224. > I wouldn't write such a book all by myself, but I'd gladly contribute. I
  7225. > would however be interested in writing a book about MUI programming,
  7226. > which some have requested me to do (I even started the table of
  7227. > contents ;-) ), but I didn't think the marked was big enough to justify
  7228. > my efforts (I'm not talking about profit but merely the fact that it
  7229. > wouldn't be good for my self esteem if I spent e.g. a month on a book
  7230. > that only 10 people would read).
  7231. Heheh. Yeah, why would anyone want to read about MUI anyhow? :)
  7232. > > secondly. Is there people who are interested in such a book if its
  7233. > > done, and reasonably priced?
  7234. > It would probably be a good idea to collect requests about which topics
  7235. > people would like to read about, as I imagine that even experienced
  7236. > Amiga developers could be tempted to buy the book if it had the proper
  7237. > contents. But perhaps that would make it more of a FAQ than a book...
  7238. That idea has some merit, however I still don't think the results would be
  7239. worthwhile. Personally, I think you'd all be better off doing a well
  7240. commented, organized source collection complemented by explanatory text
  7241. files and/or tutorials on selected topics succh as CA,MUI,TCP/IP, debugging,
  7242. etc.). The effort would be similar, but the expense would be nonexistant,
  7243. both to the writers/publisher and the end user. If I still used the Amiga
  7244. much I'd contribute too, but my spare time is pretty much taken up playing
  7245. with my shiny new PC lately.
  7246. Regards Rod
  7247. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7248. eGroups is now Yahoo! Groups
  7249. Click here for more details
  7250. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7251. ---------------------------------------------------------------------_->
  7252. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7253. @ENDNODE
  7254. @NODE "Mail_219" " Re: Anyone interested in writing a C-Amiga book? "
  7255. Date: 02-23-01 03:20:09
  7256. Subject: @{b}Re: Anyone interested in writing a C-Amiga book?@{ub}
  7257. Recieved your message about [amiga-c] Anyone interested in writing a C-Amiga book?, on 21-Feb-01
  7258. > Hello.
  7259. > I was here thinking, whether someone or some would be interested in
  7260. > writing Amiga C-Book in english.
  7261. Maybe it would be a good idea to set-up a poll for the group at
  7262. YahooGroups ?
  7263. Regards,
  7264. M!ke C
  7265. .--------------------------------- ---- -    -- --------.
  7266. | AMiGA 1200EZT 060/PPC@240Mhz,82Mb RAM __/\__          |
  7267. | 3 HDD,DD FD,5 CD-ROMS,CDrW,ZiP250     \ o0 / bUDDa^SDS|
  7268. | SCSI+IDE, 56kModem, BVGfX, 19"VDU     /_'-_\          |
  7269. `------------------------------- --- -    \/   -- ------'
  7270.   http://www.BuddasWurld.com              ICQ: 29173597
  7271. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7272. eGroups is now Yahoo! Groups
  7273. Click here for more details
  7274. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7275. ---------------------------------------------------------------------_->
  7276. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7277. @ENDNODE
  7278. @NODE "Mail_220" " Poll results for amiga-c "
  7279. Date: 02-23-01 04:19:02
  7280. Subject: @{b}Poll results for amiga-c@{ub}
  7281. The following amiga-c poll is now closed.  Here are the 
  7282. final results: 
  7283. POLL QUESTION: What 'C' compiler system do you use? 
  7284. CHOICES AND RESULTS
  7285. - StormC, 4 votes, 20.00%  
  7286. - StormGCC, 4 votes, 20.00%  
  7287. - SAS C, 3 votes, 15.00%  
  7288. - Hisoft C++, 2 votes, 10.00%  
  7289. - VBCC, 4 votes, 20.00%  
  7290. - gcc, 3 votes, 15.00%  
  7291. - Dice, 0 votes, 0.00%  
  7292. - Other, 0 votes, 0.00%  
  7293. INDIVIDUAL VOTES
  7294. - StormC 
  7295.      - tkuk7@central.susx.ac.uk 
  7296.      - paul.qureshi@btinternet.com 
  7297.      - perezp@digitaldune.net 
  7298.      - DonaldWM@stonelawdrive.freeserve.co.uk 
  7299. - StormGCC 
  7300.      - chris@riednet.tu-darmstadt.de 
  7301.      - anj@cremlinsoftware.org 
  7302.      - jami.laakkonen@kolumbus.fi 
  7303.      - Duff@DIKU.DK 
  7304. - SAS C 
  7305.      - laursen@myself.com 
  7306.      - colstv@hotkey.net.au 
  7307.      - roderick_maclean@agilent.com 
  7308. - Hisoft C++ 
  7309.      - andrewmarkwell@hotmail.com 
  7310.      - bhand@ec-red.com 
  7311. - VBCC 
  7312.      - jlpicard@tiscalinet.it 
  7313.      - denbi@softsystem.pl 
  7314.      - layabouts@the-giant-sofa.demon.co.uk 
  7315.      - paulb@adelaide.on.net 
  7316. - gcc 
  7317.      - damir.arh@telesat.si 
  7318.      - bablos@blueyonder.co.uk 
  7319.      - paul@lagernet.clara.co.uk 
  7320. - Dice 
  7321. - Other 
  7322. For more information about this group, please visit 
  7323. http://groups.yahoo.com/group/amiga-c 
  7324. For help with Yahoo! Groups, please visit
  7325. http://help.yahoo.com/help/us/groups/
  7326. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7327. eGroups is now Yahoo! Groups
  7328. Click here for more details
  7329. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7330. ---------------------------------------------------------------------_->
  7331. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7332. @ENDNODE
  7333. @NODE "Mail_221" " opening the parallel.device "
  7334. Date: 02-23-01 08:35:03
  7335. Subject: @{b}opening the parallel.device@{ub}
  7336. Has anyone been able to get the RKM example code for the 
  7337. parallel.device
  7338. to actually open the parallel.device?  Even when the parallel.device
  7339. has been removed from the exec device list, along with the 
  7340. misc.resource
  7341. & ciaa.resource, the device still fails to open.  It's my 
  7342. understanding 
  7343. that when the device open count is zero, there is no other task using
  7344. the device & you should be able to open the device.  I'd hate to have
  7345. to use the hardware directly, since the device commands for reading
  7346. & writing insulate one's code from a lot of details.  parallel.device
  7347. has not changed from V40.1 in OS3.1.  Apparently, when the printer 
  7348. uses the parallel port, printer.device is able to access 
  7349. parallel.device
  7350. as well.  (some programs open both & I can see them on the exec device
  7351. list).  Is there some other resource that has to be available before
  7352. the parallel.device can be opened?  Jim Steichen, jimbot@rconnect.com
  7353. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7354. eGroups is now Yahoo! Groups
  7355. Click here for more details
  7356. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7357. ---------------------------------------------------------------------_->
  7358. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7359. @ENDNODE
  7360. @NODE "Mail_222" " Re: Anyone interested in writing a C-Amiga book? "
  7361. Date: 02-23-01 09:58:15
  7362. Subject: @{b}Re: Anyone interested in writing a C-Amiga book?@{ub}
  7363. > -----Urspr> 
  7364. ngliche Nachricht-----
  7365. > Von:    Allan Odgaard [SMTP:Duff@DIKU.DK]
  7366. > Gesendet am:    Donnerstag, 22. Februar 2001 21:57
  7367. > An:    amiga-c@yahoogroups.com
  7368. > Betreff:    [amiga-c] Re: Anyone interested in writing a C-Amiga book?
  7369.     Allan wrote 
  7370. > I wouldn't write such a book all by myself, but I'd gladly contribute. I
  7371. > would however be interested in writing a book about MUI programming,
  7372. > which some have requested me to do (I even started the table of
  7373. > contents ;-) ), but I didn't think the marked was big enough to justify
  7374. > my efforts (I'm not talking about profit but merely the fact that it
  7375. > wouldn't be good for my self esteem if I spent e.g. a month on a book
  7376. > that only 10 people would read).
  7377.     I would definetely buy a good book about MUI and I am sure *you* have the knowledge for such a book. I would suggest the book should describe one bigger project that gets exptended from chapter to chapter. General Amiga-C topics could be handled in such a MUI book as well. I own an very old C-Book called "Amiga C Programmierung" by a Mr. Wollschl
  7378. ger. (German) The book has one topic  - create a little paint program. He explains general C for absolut beginners and combines that with intuition functions. A Screen gets openend, some points are set and lines are drawed. Later the points are set with the mouse, then some requesters are added. (color, load/save) The code is always written in the book, so the reader has to type it by himself. (But *that* teaches more than just starting a ready to use exmple from disk or CD) The reader gets a big personal success in each chapter and so he stays motivated. Of course an additional FAQ chapter or examples from the Mailinglist would be nice too. 
  7379.     If people like the idea of explaining/teaching MUI (and C) with one bigger example we should first discuss what example project we would like to see. (usefull, understandable, expandable...)
  7380.     Once again:
  7381.     I would definitely buy a book about MUI programming.
  7382.     Kind regards Alexander Fritsch
  7383.     Please don't start a flamewar about MUI or not MUI now.
  7384. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7385. eGroups is now Yahoo! Groups
  7386. Click here for more details
  7387. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7388. ---------------------------------------------------------------------_->
  7389. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7390. @ENDNODE
  7391. @NODE "Mail_223" " Re: Anyone interested in writing a C-Amiga book? "
  7392. Date: 02-23-01 13:14:21
  7393. Subject: @{b}Re: Anyone interested in writing a C-Amiga book?@{ub}
  7394. I would definitly buy a book that covered general Amiga C programming and
  7395. some general C also. I have mastered ANSI C fairly rapidly but when it
  7396. comes to anything more complicated than simple GadTools interfaces I'm
  7397. stuck so I'd love to know how to use MUI for this kind of thing. Playing
  7398. sound samples, displaying bitmapped graphics in my About windows and so on
  7399. are all things that, due to my lack of Amiga-specific knowledge, are simply
  7400. beyond me.
  7401. Topics to include would be:
  7402. User Interfaces - Gadtools, MUI..
  7403. Sound - playing it, sampling it, using datatypes?
  7404. Graphics - displaying them, loading then, Datatypes?
  7405. Creating Commodities, exec functions, allocating memory (pools?)
  7406. So yes, please write your book.
  7407. Missed the poll about which compiler people use, add me to the SAS C
  7408. brigade won't you?
  7409. Regards,
  7410. BTW. Anyone give me a code snippet for getting the time and date out of the
  7411. internal clock? Thanks.
  7412. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7413. eGroups is now Yahoo! Groups
  7414. Click here for more details
  7415. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7416. ---------------------------------------------------------------------_->
  7417. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7418. @ENDNODE
  7419. @NODE "Mail_224" " Re: date/time "
  7420. Date: 02-23-01 13:29:24
  7421. Subject: @{b}Re: date/time@{ub}
  7422. On 23-Feb-01, kevin.bewley@camr.org.uk wrote:
  7423. > BTW. Anyone give me a code snippet for getting the time and date out
  7424. > of the internal clock? Thanks.
  7425. Check the Utility Library autodoc.
  7426. Amiga2Date()
  7427. also DOS  DateStamp()
  7428. Regards
  7429. _________________________________________
  7430. Colin Wenzel.  Quensland, Australia.
  7431. EMAIL:  colstv@hotkey.net.au
  7432. URL:       http://www.hotkey.net.au/~colstv/
  7433. AMIGA: 4000T,  68060/50,  150Mb RAM,  
  7434.                OS 3.9,  Spectrum Gfx Card + P96.
  7435. Need an Image Generator For CATV  ??
  7436.        http://connect.to/products
  7437. _________________________________________
  7438. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7439. eGroups is now Yahoo! Groups
  7440. Click here for more details
  7441. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7442. ---------------------------------------------------------------------_->
  7443. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7444. @ENDNODE
  7445. @NODE "Mail_225" " Re: Re: date/time "
  7446. Date: 02-23-01 13:36:25
  7447. Subject: @{b}Re: Re: date/time@{ub}
  7448. Hi Colin
  7449. > Check the Utility Library autodoc.
  7450. > Amiga2Date()
  7451. ReadBattMem() from battclock.resource (see Autodoc) is also pretty useful in 
  7452. conjunction with Amiga2Date().
  7453. |) /\ \/ ][ |)   |\/| c |\/| ][ |\| |\|   |   dave@blitz-2000.co.uk
  7454.    http://members.nbci.com/david_mcminn   |   ICQ=16827694
  7455. WANTED: Meaningful overnight relationship.
  7456. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7457. eGroups is now Yahoo! Groups
  7458. Click here for more details
  7459. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7460. ---------------------------------------------------------------------_->
  7461. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7462. @ENDNODE
  7463. @NODE "Mail_226" " RE: iff.library "
  7464. Date: 02-23-01 14:15:01
  7465. Subject: @{b}RE: iff.library@{ub}
  7466. >Hi Filip
  7467. >> I'm using stormC compiler from amiga dev CD 2.1.  
  7468. >> I try to display iff picture with function in iff.library. Included
  7469. examples are
  7470. >> clear and easy but i'm not able to compile it, linker always says that
  7471. "cannot
  7472. >> found IFFBase: hint _main".
  7473. >Sounds like you normally use the library auto-open option that I think (??,
  7474. >can't remember) Storm has. But obviously, this only works for libraries
  7475. that it 
  7476. >has been set up for.
  7477. auto-open?
  7478. I never heard about such feature, what is it exactly?
  7479. >Have a look in the proto/#?.h file for iff.library - copy the line which
  7480. would 
  7481. >look something like:
  7482. >extern struct Library *IFFBase;
  7483. >as a global variable in your source file and remove the extern part.
  7484. Remember 
  7485. >to add some code to your program to open and close this library too.
  7486. I tried it but it did not work. Of course i have there code to open and
  7487. close this library. After some fiddling around I realize that if I just open
  7488. and close this library everything is okay, but when I use some of functions
  7489. of this library, linker always stops at this strange bug.
  7490. Is there another solution?
  7491. thanks
  7492. Filip
  7493. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7494. eGroups is now Yahoo! Groups
  7495. Click here for more details
  7496. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7497. ---------------------------------------------------------------------_->
  7498. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7499. @ENDNODE
  7500. @NODE "Mail_227" " Re[2]: iff.library "
  7501. Date: 02-23-01 14:22:57
  7502. Subject: @{b}Re[2]: iff.library@{ub}
  7503. Hello Filip,
  7504. > but when I use some of functions
  7505. > of this library, linker always stops at this strange bug.
  7506. What about another libraries? Does another libraries return this error
  7507. too? 
  7508. Best regards,
  7509.  Backa                            mailto:backa@compic.ee
  7510. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7511. eGroups is now Yahoo! Groups
  7512. Click here for more details
  7513. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7514. ---------------------------------------------------------------------_->
  7515. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7516. @ENDNODE
  7517. @NODE "Mail_228" " RE: Re[2]: iff.library "
  7518. Date: 02-23-01 14:28:41
  7519. Subject: @{b}RE: Re[2]: iff.library@{ub}
  7520. >Hello Filip,
  7521. >F?> but when I use some of functions
  7522. >F?> of this library, linker always stops at this strange bug.
  7523. >What about another libraries? Does another libraries return this error
  7524. >too? 
  7525. Yes, exactly, I am trying to display iff picture and I try iff.library and
  7526. guigfx.library and there is linker error "cannot found IFFBase: hint _main"
  7527. respective GuiGFXBase.
  7528. So I guess that i will got this error with every library that is not
  7529. included in amigaOS.
  7530. Filip
  7531. >Best regards,
  7532. > Backa                            mailto:backa@compic.ee
  7533. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7534. eGroups is now Yahoo! Groups
  7535. Click here for more details
  7536. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7537. ---------------------------------------------------------------------_->
  7538. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7539. @ENDNODE
  7540. @NODE "Mail_229" " Re: iff.library "
  7541. Date: 02-23-01 21:33:31
  7542. Subject: @{b}Re: iff.library@{ub}
  7543. Filip wrote:
  7544. > Yes, exactly, I am trying to display iff picture and I try 
  7545. > iff.library and guigfx.library and there is linker error "cannot 
  7546. > found IFFBase: hint _main" respective GuiGFXBase.
  7547. > So I guess that i will got this error with every library that is not
  7548. > included in amigaOS.
  7549. This error is occuring sincce you do not open the libraries in your 
  7550. code. You are assuming the compiler will do this for you, which it 
  7551. does for some OS libs, but I think this is bad practice.
  7552. To fix the problem you need
  7553. struct Library *IFFBase;
  7554. and then in the begining of your code you need,
  7555. IFFBase = OpenLibrary("iff.library, 37L);
  7556. and at the end a 
  7557. CloseLibrary(IFFBase);
  7558. This should fix the problem.
  7559. BTW why not use datatypes to load the image?
  7560. Shinda
  7561. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7562. eGroups is now Yahoo! Groups
  7563. Click here for more details
  7564. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7565. ---------------------------------------------------------------------_->
  7566. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7567. @ENDNODE
  7568. @NODE "Mail_230" " RE: Re[2]: iff.library "
  7569. Date: 02-24-01 09:33:27
  7570. Subject: @{b}RE: Re[2]: iff.library@{ub}
  7571. Hi Filip,
  7572. > >F?> but when I use some of functions
  7573. > >F?> of this library, linker always stops at this
  7574. > strange bug.
  7575. > >What about another libraries? Does another
  7576. > libraries return this error
  7577. > >too? 
  7578. > Yes, exactly, I am trying to display iff picture and
  7579. > I try iff.library and
  7580. > guigfx.library and there is linker error "cannot
  7581. > found IFFBase: hint _main"
  7582. > respective GuiGFXBase.
  7583. > So I guess that i will got this error with every
  7584. > library that is not
  7585. > included in amigaOS.
  7586. No it's totaly normal. In fact, under AmigaOS, it's a
  7587. programmer task to open librairies, so the programmer
  7588. that must declare a library pointer for each openned
  7589. library.
  7590. So somewhere in YOUR code, you should have a global
  7591. variable
  7592. Library *IFFBase;
  7593. Some compilers (Dice, GCC, ...) could open itself some
  7594. known library : The famous autoopen feature.
  7595. Hopping could help.
  7596. Laurent
  7597. =====
  7598. The misspelling master is on the Web.
  7599.    _________
  7600.   /        /(
  7601.  /  Dico  / /    100 % Dictionnary Free !
  7602. /________/ /         
  7603. (#######( /
  7604. Quoi, des fautes d'orthographe! Pas possible ;-D.
  7605. __________________________________________________
  7606. Do You Yahoo!?
  7607. Get email at your own domain with Yahoo! Mail. 
  7608. http://personal.mail.yahoo.com/
  7609. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7610. eGroups is now Yahoo! Groups
  7611. Click here for more details
  7612. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7613. ---------------------------------------------------------------------_->
  7614. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7615. @ENDNODE
  7616. @NODE "Mail_231" " Re: Re: Anyone interested in writing a C-Amiga book? "
  7617. Date: 02-25-01 22:05:26
  7618. Subject: @{b}Re: Re: Anyone interested in writing a C-Amiga book?@{ub}
  7619. Le 22-f
  7620. v-01, Allan Odgaard a 
  7621. crit:
  7622. >Hello Dr.BrainDamage,
  7623. >> [...]
  7624. >> As it seems there are lot of people who would really appreciate such a
  7625. >> book, which would tell how to use C in amiga specific way.
  7626. >Does that mean there's actually a request for such a book?
  7627. >> And as i already have a company then i would publish it and of course
  7628. >> give percents to writers from sales.
  7629. >How much would you imagine that the book should sell to break even?
  7630. >> Is there people who are interested in writing it?
  7631. >I wouldn't write such a book all by myself, but I'd gladly contribute. I
  7632. >would however be interested in writing a book about MUI programming,
  7633. >which some have requested me to do (I even started the table of
  7634. >contents ;-) )
  7635. A MUI chapter would be really appreciated. I think the most important is to
  7636. start a such book, it wouldn't be a waste of time. What about an HTML or a
  7637. Postscript version, written and corrcted by people from this list ? Everyone
  7638. who writes a chapter submits it to the list and when the document is ready, it
  7639. just has to be updated on a dedicated website.
  7640. Regards,
  7641.           Mathias PARNAUDEAU - Corto/AFLE
  7642.    WoW : The universal text converter for Amiga
  7643.                 - v1.20 available -
  7644. Email    : mathias.p@wanadoo.fr
  7645. Site Web : http://perso.wanadoo.fr/supersport/
  7646. Visitez aussi www.amigapower.net & www.amigaimpact.com
  7647. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7648. eGroups is now Yahoo! Groups
  7649. Click here for more details
  7650. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7651. ---------------------------------------------------------------------_->
  7652. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7653. @ENDNODE
  7654. @NODE "Mail_232" " Re: Re: Anyone interested in writing a C-Amiga book? "
  7655. Date: 02-25-01 22:11:21
  7656. Subject: @{b}Re: Re: Anyone interested in writing a C-Amiga book?@{ub}
  7657. Le 23-f
  7658. v-01, kevin.bewley@camr.org.uk a 
  7659. crit:
  7660. >I would definitly buy a book that covered general Amiga C programming and
  7661. >some general C also. I have mastered ANSI C fairly rapidly but when it
  7662. >comes to anything more complicated than simple GadTools interfaces I'm
  7663. >stuck so I'd love to know how to use MUI for this kind of thing. Playing
  7664. >sound samples, displaying bitmapped graphics in my About windows and so on
  7665. >are all things that, due to my lack of Amiga-specific knowledge, are simply
  7666. >beyond me.
  7667. I forgot this : I would buy a such book if it becomes a commercial product.
  7668. >Topics to include would be:
  7669. >User Interfaces - Gadtools, MUI..
  7670. >Sound - playing it, sampling it, using datatypes?
  7671. >Graphics - displaying them, loading then, Datatypes?
  7672. >Creating Commodities, exec functions, allocating memory (pools?)
  7673. >So yes, please write your book.
  7674. We need it. Here in France we started to give tips about system programming
  7675. but people would like to find more.
  7676. >Missed the poll about which compiler people use, add me to the SAS C
  7677. >brigade won't you?
  7678. I didn't vote, but I use SAS/C too, and I installed GCC, not working with
  7679. Amiga calls for the moment ...
  7680. Regards,
  7681.           Mathias PARNAUDEAU - Corto/AFLE
  7682.    WoW : The universal text converter for Amiga
  7683.                 - v1.20 available -
  7684. Email    : mathias.p@wanadoo.fr
  7685. Site Web : http://perso.wanadoo.fr/supersport/
  7686. Visitez aussi www.amigapower.net & www.amigaimpact.com
  7687. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7688. eGroups is now Yahoo! Groups
  7689. Click here for more details
  7690. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7691. ---------------------------------------------------------------------_->
  7692. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7693. @ENDNODE
  7694. @NODE "Mail_233" " Link together C and C++ "
  7695. Date: 02-26-01 00:08:25
  7696. Subject: @{b}Link together C and C++@{ub}
  7697. I got troubles when mixing C++ and C source,
  7698. for example:
  7699. /*--------------------------*/
  7700. /*--------- test.h ---------*/
  7701. /*--------------------------*/
  7702. #ifndef TEST_H
  7703. #define TEST_H
  7704. void myFunc(void);
  7705. #endif
  7706. /*--------------------------*/
  7707. /*-------- test.cpp --------*/
  7708. /*--------------------------*/
  7709. #include <stdio.h>
  7710. #include "test.h"
  7711. void myFunc(void)
  7712.    printf("Just a test.\n");
  7713. /*--------------------------*/
  7714. /*-------- testmain.c ------*/
  7715. /*--------------------------*/
  7716. #include "test.h"
  7717. void main (void)
  7718.    myFunc();
  7719. When I link objects, SAS doesn't find define symbol for _myFunc.
  7720. What is going? When I rename "test.cpp" to "test.c" , compile
  7721. and link, all is OK!
  7722. I need classes in myFunc, and I can't use C++ in main()!
  7723. Any solution?
  7724. Vassili
  7725. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7726. eGroups is now Yahoo! Groups
  7727. Click here for more details
  7728. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7729. ---------------------------------------------------------------------_->
  7730. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7731. @ENDNODE
  7732. @NODE "Mail_234" " OT: Amiga SDK "
  7733. Date: 02-26-01 03:16:27
  7734. Subject: @{b}OT: Amiga SDK@{ub}
  7735. Hello,
  7736.     I've been reading about Amiga SDK and was wondering if
  7737. it can work on an Amiga?
  7738. Kind regards
  7739. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7740. eGroups is now Yahoo! Groups
  7741. Click here for more details
  7742. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7743. ---------------------------------------------------------------------_->
  7744. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7745. @ENDNODE
  7746. @NODE "Mail_235" " OT: Amiga SDK "
  7747. Date: 02-26-01 03:16:27
  7748. Subject: @{b}OT: Amiga SDK@{ub}
  7749. Hello,
  7750.     I've been reading about Amiga SDK and was wondering if
  7751. it can work on an Amiga?
  7752. Kind regards
  7753. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7754. eGroups is now Yahoo! Groups
  7755. Click here for more details
  7756. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7757. ---------------------------------------------------------------------_->
  7758. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7759. @ENDNODE
  7760. @NODE "Mail_236" " Re: Link together C and C++ "
  7761. Date: 02-26-01 09:55:10
  7762. Subject: @{b}Re: Link together C and C++@{ub}
  7763. On Mon, Feb 26, 2001 at 01:08:25AM +0200, Vassili Smirnov wrote:
  7764. > #ifndef TEST_H
  7765. > #define TEST_H
  7766. > void myFunc(void);
  7767.   This has to be: extern "C" void myFunc(void);
  7768. > #endif
  7769.   Gunther
  7770. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7771. @ENDNODE
  7772. @NODE "Mail_237" " FW: Re: iff.library "
  7773. Date: 02-26-01 10:34:17
  7774. Subject: @{b}FW: Re: iff.library@{ub}
  7775. >> Yes, exactly, I am trying to display iff picture and I try 
  7776. >> iff.library and guigfx.library and there is linker error "cannot 
  7777. >> found IFFBase: hint _main" respective GuiGFXBase.
  7778. >> So I guess that i will got this error with every library that is not
  7779. >> included in amigaOS.
  7780. >This error is occuring sincce you do not open the libraries in your 
  7781. >code. You are assuming the compiler will do this for you, which it 
  7782. >does for some OS libs, but I think this is bad practice.
  7783. >To fix the problem you need
  7784. >struct Library *IFFBase;
  7785. >and then in the begining of your code you need,
  7786. >IFFBase = OpenLibrary("iff.library, 37L);
  7787. >and at the end a 
  7788. >CloseLibrary(IFFBase);
  7789. These lines are already included in my source code, i never use auto-open
  7790. feature.
  7791. The problem is: when i open and close library in my code, compilation is ok,
  7792. but when i try to use some function from this library, linker fails.
  7793. >This should fix the problem.
  7794. >BTW why not use datatypes to load the image?
  7795. Because I'm currently learning to program Amiga in C, if using datatypes is
  7796. easier than using loading function from iff.library I'll do it.
  7797. Filip
  7798. >Shinda
  7799. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7800. eGroups is now Yahoo! Groups
  7801. Click here for more details
  7802. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7803. ---------------------------------------------------------------------_->
  7804. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7805. @ENDNODE
  7806. @NODE "Mail_238" " Re: iff.library "
  7807. Date: 02-26-01 11:37:06
  7808. Subject: @{b}Re: iff.library@{ub}
  7809. On Mon, 26 Feb 2001 AD, Filip 
  7810. UBR wrote:
  7811. > The problem is: when i open and close library in my code, 
  7812. > compilation is ok,
  7813. > but when i try to use some function from this library, linker fails.
  7814. Are there any .lib files or .o files that you are supposed to
  7815. link to your programs when you use iff.library?
  7816. >> This should fix the problem.
  7817. >> BTW why not use datatypes to load the image?
  7818. > Because I'm currently learning to program Amiga in C, if 
  7819. > using datatypes is
  7820. > easier than using loading function from iff.library I'll do it.
  7821. There is a really good tutorial with source code from Cloanto.
  7822. I can't remember where I got it but I think it was Aminet.
  7823. Regards,
  7824. Rod MacLean                      | Roderick_MacLean@agilent.com
  7825. Developer - Agilent Technologies | Tel:  +44 (0)131 331-7304
  7826. ** My views do not necessarily reflect the views of Agilent! **
  7827. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7828. eGroups is now Yahoo! Groups
  7829. Click here for more details
  7830. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7831. ---------------------------------------------------------------------_->
  7832. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7833. @ENDNODE
  7834. @NODE "Mail_239" " RE: Re: iff.library "
  7835. Date: 02-26-01 11:41:46
  7836. Subject: @{b}RE: Re: iff.library@{ub}
  7837. >> The problem is: when i open and close library in my code, 
  7838. >> compilation is ok,
  7839. >> but when i try to use some function from this library, linker fails.
  7840. >Are there any .lib files or .o files that you are supposed to
  7841. >link to your programs when you use iff.library?
  7842. yes, there is iff.lib in archive, i've linked it already. But i've got this
  7843. linker error even with guigfx.library and there is not *.lib to be linked
  7844. it's just shared library.
  7845. Filip
  7846. ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
  7847. eGroups is now Yahoo! Groups
  7848. Click here for more details
  7849. http://us.click.yahoo.com/kWP7PD/pYNCAA/4ihDAA/d8AVlB/TM
  7850. ---------------------------------------------------------------------_->
  7851. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7852. @ENDNODE
  7853. @NODE "Mail_240" " Re: Link together C and C++ "
  7854. Date: 02-26-01 14:38:44
  7855. Subject: @{b}Re: Link together C and C++@{ub}
  7856. Hi Vassili,
  7857. --- Vassili Smirnov <backa@compic.ee> a 
  7858. crit : > Hi!
  7859. > I got troubles when mixing C++ and C source,
  7860. > for example:
  7861. > /*--------------------------*/
  7862. > /*--------- test.h ---------*/
  7863. > /*--------------------------*/
  7864. > #ifndef TEST_H
  7865. > #define TEST_H
  7866. > void myFunc(void);
  7867. > #endif
  7868. > /*--------------------------*/
  7869. > /*-------- test.cpp --------*/
  7870. > /*--------------------------*/
  7871. > #include <stdio.h>
  7872. > #include "test.h"
  7873. > void myFunc(void)
  7874. >    printf("Just a test.\n");
  7875. > /*--------------------------*/
  7876. > /*-------- testmain.c ------*/
  7877. > /*--------------------------*/
  7878. > #include "test.h"
  7879. > void main (void)
  7880. >    myFunc();
  7881. > When I link objects, SAS doesn't find define symbol
  7882. > for _myFunc.
  7883. It's normal because a C++ compiler generate functions
  7884. with some informations like parameters, return type,
  7885. ... into the name of the function. It's for
  7886. overloading purpose.
  7887. > What is going? When I rename "test.cpp" to "test.c"
  7888. > , compile
  7889. > and link, all is OK!
  7890. > I need classes in myFunc, and I can't use C++ in
  7891. > main()!
  7892. No, the solution is to have a C++ testmain (so you
  7893. have only to remove testmain.c into testmain.cxx, or
  7894. .cpp).
  7895. As a conclusion : 
  7896. - C++ may call C function
  7897. - it's difficult to call C++ from C.
  7898. Laurent
  7899. =====
  7900. The misspelling master is on the Web.
  7901.    _________
  7902.   /        /(
  7903.  /  Dico  / /    100 % Dictionnary Free !
  7904. /________/ /         
  7905. (#######( /
  7906. Quoi, des fautes d'orthographe! Pas possible ;-D.
  7907. __________________________________________________
  7908. Do You Yahoo!?
  7909. Get email at your own domain with Yahoo! Mail. 
  7910. http://personal.mail.yahoo.com/
  7911. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7912. @ENDNODE
  7913. @NODE "Mail_241" " Re[2]: Link together C and C++ "
  7914. Date: 02-26-01 15:15:06
  7915. Subject: @{b}Re[2]: Link together C and C++@{ub}
  7916. Hello Laurent,
  7917. LF> As a conclusion :
  7918. LF> - C++ may call C function
  7919. LF> - it's difficult to call C++ from C.
  7920. Hmmm...
  7921. If I can't call C++ from C, how I can compile MUI-targeted application
  7922. in C++ ??? I do not have idea!
  7923. When I compile MUI program (test.c - simple window with one button!),
  7924. all is Ok. But when I start to write own class, my DoMethod() is
  7925. trashed... :(  Different declaration, etc...
  7926. This was a reason for having testmain.c (MUI gui) and test.cpp (piece
  7927. of source with own classes).
  7928. Best regards,
  7929.  Backa                            mailto:backa@compic.ee
  7930. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7931. @ENDNODE
  7932. @NODE "Mail_242" " Re: Re[2]: Link together C and C++ "
  7933. Date: 02-26-01 15:39:43
  7934. Subject: @{b}Re: Re[2]: Link together C and C++@{ub}
  7935. > Hello Laurent,
  7936. Hello,
  7937. > LF> As a conclusion :
  7938. > LF> - C++ may call C function
  7939. > LF> - it's difficult to call C++ from C.
  7940. > Hmmm...
  7941. > If I can't call C++ from C, how I can compile
  7942. > MUI-targeted application
  7943. > in C++ ??? I do not have idea!
  7944. Normaly, C sources _may_ compile under C++.
  7945. If is not possible (badly writen C :-( ), you must
  7946. have you main function into a C++ file and then call
  7947. your normal C func from there.
  7948. > When I compile MUI program (test.c - simple window
  7949. > with one button!),
  7950. > all is Ok. But when I start to write own class, my
  7951. > DoMethod() is
  7952. > trashed... :(  Different declaration, etc...
  7953. > This was a reason for having testmain.c (MUI gui)
  7954. > and test.cpp (piece
  7955. > of source with own classes).
  7956. Hum, why main() stuff can't be done into test.cpp ?
  7957. You should have in testmain.cpp
  7958. extern "C" {
  7959.     extern int old_c_main(int ac, char **av);
  7960. int main(int ac, char **av){
  7961. old_c_main(av, av);    // the old main with C only code
  7962. C++ works here 
  7963. Laurent
  7964. =====
  7965. The misspelling master is on the Web.
  7966.    _________
  7967.   /        /(
  7968.  /  Dico  / /    100 % Dictionnary Free !
  7969. /________/ /         
  7970. (#######( /
  7971. Quoi, des fautes d'orthographe! Pas possible ;-D.
  7972. __________________________________________________
  7973. Do You Yahoo!?
  7974. Get email at your own domain with Yahoo! Mail. 
  7975. http://personal.mail.yahoo.com/
  7976. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7977. @ENDNODE
  7978. @NODE "Mail_243" " Re: Link together C and C++ "
  7979. Date: 02-26-01 18:16:08
  7980. Subject: @{b}Re: Link together C and C++@{ub}
  7981. Hello Backa
  7982. On 26-Feb-01, you wrote:
  7983. > Hmmm...
  7984. > If I can't call C++ from C, how I can compile MUI-targeted application
  7985. > in C++ ??? I do not have idea!
  7986. You can do it because you're not calling C++ from C.
  7987. > When I compile MUI program (test.c - simple window with one button!),
  7988. > all is Ok. But when I start to write own class, my DoMethod() is
  7989. > trashed... :(  Different declaration, etc...
  7990. > This was a reason for having testmain.c (MUI gui) and test.cpp (piece
  7991. > of source with own classes).
  7992. The easiest way to do it, is to force all your C code  through  a
  7993. C++ compiler.
  7994. Regards
  7995. Steve
  7996. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  7997. @ENDNODE
  7998. @NODE "Mail_244" " Re: C-Amiga book? "
  7999. Date: 02-27-01 00:17:06
  8000. Subject: @{b}Re: C-Amiga book?@{ub}
  8001. i see your point on book likely to be unprofitable.
  8002. However my idea was that it would be published on volume of 100 - 500, and
  8003. propably more likely to be on 100 - 250 than 500.
  8004. however, i need to check how much it would cost. As if i rightly have
  8005. understood, it`s quite expensive to publish a book on such a low numbers.
  8006. And as one stated, even high percents from almost nothing or nothing isnt
  8007. very much. I have to say, that this propably wouldnt give writers very much
  8008. money, especially as there are likely to be more than just one writer.
  8009. As you can easily count it yourself, lets say hopefully 500 copies are sold,
  8010. each by having 3$ profit. 500 x 3 is 1 500
  8011. then if i would take 500$ from that, and give authors the rest and then if
  8012. there are 5 - 10 authors possibly, it would be from 100 - 200$ each writer
  8013. would gain. So not very much as you can see. And especially when we can
  8014. very likely at least halve that number of books even done, it would also
  8015. halve the pounds.
  8016. So i`m not counting on getting lot of profit from that book at least not for
  8017. a start. I`m more thinking of helping me myself and others who are troubled
  8018. on Amiga-C usage.
  8019. So if i have, lets say, 200$ loss because of not enough books selling. I
  8020. think its not too high cost from learning those things i for long have
  8021. wanted to learn.
  8022. You dont study for such a cheap price on schools when living is counted.
  8023. however i do have an eye on profit possibility too. Because if AmigaOne will
  8024. conquer space from earth, then this book could sell quite well.
  8025. I think that poll is a good idea. I will check Yahoogroups poll system
  8026. propably this week, and will then tell you if i set it up.
  8027. There was also idea of seting up a net system around this. I think this
  8028. could be good solution.
  8029. First of all i already have quite a lot of unused space (maybe 90Mb). And if
  8030. i wouldnt make for it a root address, it wouldnt cost nothing but time.
  8031. Secondly it would be free for all, accessible for many, and be expendable.
  8032. and Thirdly, i could later perhaps if need would come, publish that book and
  8033. possibly already have content.
  8034. If that book seems to be not needed enough i will start thinking
  8035. that net possibility.
  8036. So give ideas for that net system.
  8037. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  8038. @ENDNODE
  8039. @NODE "Mail_245" " Re: iff.library "
  8040. Date: 02-26-01 12:51:18
  8041. Subject: @{b}Re: iff.library@{ub}
  8042. Hello Shinda
  8043. On 23-Feb-01, you wrote:
  8044. > This error is occuring sincce you do not open the libraries in your 
  8045. > code. You are assuming the compiler will do this for you, which it 
  8046. > does for some OS libs, but I think this is bad practice.
  8047. > To fix the problem you need
  8048. > struct Library *IFFBase;
  8049. > and then in the begining of your code you need,
  8050. > IFFBase = OpenLibrary("iff.library, 37L);
  8051. > and at the end a 
  8052. > CloseLibrary(IFFBase);
  8053. I have done so testing with iff.library myself, just to put a simple ilbm
  8054. picture to a screen. I could post the source if you want? It's not big,
  8055. about 1,5 kb
  8056. Regards
  8057. Groeten,
  8058. Joris Kempen - webmaster
  8059. visit www.detrekkers.com
  8060. I have made this letter longer than usual because I lack the time to
  8061. make it shorter.
  8062. -- Blaise Pascal
  8063. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  8064. @ENDNODE
  8065. @NODE "Mail_246" " Re: C-Amiga book? "
  8066. Date: 02-27-01 01:48:47
  8067. Subject: @{b}Re: C-Amiga book?@{ub}
  8068. Recieved your message about [amiga-c] Re: C-Amiga book?, on 27-Feb-01
  8069. > i see your point on book likely to be unprofitable.
  8070. > However my idea was that it would be published on volume of 100 -
  8071. > 500, and propably more likely to be on 100 - 250 than 500.
  8072. well stick me down for a copy, i much prefer using reference material
  8073. on paper than from files on disk/cd.
  8074. Covering things like directory scanning (ExAll, ExNext etc.) and how
  8075. to copy a file the fool proof way and simple things which are handy as
  8076. a quick reference.
  8077. Granted these code snippets could just as well be offered on a web
  8078. site - such as the C repository.  BTW: has the site been moved to a
  8079. better server (ie. non Redhotant.com yet??)
  8080. <SNIP>
  8081. > You dont study for such a cheap price on schools when living is
  8082. > counted.
  8083. true.
  8084. > however i do have an eye on profit possibility too. Because if
  8085. > AmigaOne will conquer space from earth, then this book could sell
  8086. > quite well.
  8087. hm, no this wouldn't be the same - the new AmigaDE/OS/whatever uses a
  8088. new system so the Amiga specifics in the book would not be useful and
  8089. so not interesting for any new coders comming to 'Amiga'.  Maybe the
  8090. 'classic' Amiga but then you don't really see new developers
  8091. approaching the platform these days.
  8092. Or were you just counting on Eyetechs hardware selling really well
  8093. (doubt it?) and emulating the classic (current) Amiga OS?
  8094. > I think that poll is a good idea. I will check Yahoogroups poll
  8095. > system propably this week, and will then tell you if i set it up.
  8096. Once you've set the poll up the group should get notification to go
  8097. and place their answer.
  8098. <SNIP>
  8099. > and Thirdly, i could later perhaps if need would come, publish that
  8100. > book and possibly already have content.
  8101. make sure anybody donating code knows it may be published and is okay
  8102. with this condition then.  don't many any grumbles comming up from
  8103. this list (again).
  8104. > If that book seems to be not needed enough i will start thinking
  8105. > that net possibility.
  8106. > So give ideas for that net system.
  8107. a nice sql search engine to find code snippets on given topics would
  8108. be handy.  and allow a form button to copy the code from the page to
  8109. the clipboard at the click of it :o)  for lazy people to paste into
  8110. their c text editor... hehe.
  8111. Regards,
  8112. M!ke C
  8113. .--------------------------------- ---- -    -- --------.
  8114. | AMiGA 1200EZT 060/PPC@240Mhz,82Mb RAM __/\__          |
  8115. | 3 HDD,DD FD,5 CD-ROMS,CDrW,ZiP250     \ o0 / bUDDa^SDS|
  8116. | SCSI+IDE, 56kModem, BVGfX, 19"VDU     /_'-_\          |
  8117. `------------------------------- --- -    \/   -- ------'
  8118.   http://www.BuddasWurld.com              ICQ: 29173597
  8119. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  8120. @ENDNODE
  8121. @NODE "Mail_247" " iff.library example "
  8122. Date: 02-27-01 12:31:07
  8123. Subject: @{b}iff.library example@{ub}
  8124. Hello,
  8125. Here i sent my example of using the iff.library. It compiles correctly with
  8126. StormC3 from the dev2.1 cdrom.
  8127. i hope it's to someones use... 
  8128. Groeten,
  8129. Joris Kempen - webmaster
  8130. visit www.detrekkers.com
  8131. I have made this letter longer than usual because I lack the time to
  8132. make it shorter.
  8133. -- Blaise Pascal
  8134. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  8135. @ENDNODE
  8136. @NODE "Mail_248" " RE: Re: iff.library "
  8137. Date: 02-27-01 12:35:23
  8138. Subject: @{b}RE: Re: iff.library@{ub}
  8139. >Hello Shinda
  8140. >On 23-Feb-01, you wrote:
  8141. >> This error is occuring sincce you do not open the libraries in your 
  8142. >> code. You are assuming the compiler will do this for you, which it 
  8143. >> does for some OS libs, but I think this is bad practice.
  8144. >> To fix the problem you need
  8145. >> struct Library *IFFBase;
  8146. >> and then in the begining of your code you need,
  8147. >> IFFBase = OpenLibrary("iff.library, 37L);
  8148. >> and at the end a 
  8149. >> CloseLibrary(IFFBase);
  8150. >I have done so testing with iff.library myself, just to put a simple ilbm
  8151. >picture to a screen. I could post the source if you want? It's not big,
  8152. >about 1,5 kb
  8153. yes, yes, please
  8154. send me this source
  8155. Filip
  8156. >Regards
  8157. >Groeten,
  8158. >Joris Kempen - webmaster
  8159. >visit www.detrekkers.com
  8160. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  8161. @ENDNODE
  8162. @NODE "Mail_249" " Picasso96 DrawImage() Problem "
  8163. Date: 02-27-01 16:08:27
  8164. Subject: @{b}Picasso96 DrawImage() Problem@{ub}
  8165. I'm writing a program which needs to copy an image using DrawImage()
  8166. to an offscreen bitmap whose format matches the screen bitmap (that
  8167. is, the offscreen bitmap is allocated by calling AllocBitMap() with
  8168. the screen's bitmap passed as the friend bitmap). To do this, a
  8169. temporary RastPort is constructed and the allocated bitmap attached
  8170. to it so that DrawImage() can be used.
  8171. Everything works fine when the screen is in a native screen mode
  8172. and when a Picasso96 8-bit screen is chosen, but fails when a
  8173. high or true color screen is in use. When I say that it fails,
  8174. it copies the image data correctly but the colors are wrong.
  8175. I've also tried replacing the DrawImage() call with a BltBitMap()
  8176. and, once again, the image data looks fine but the colors are
  8177. messed up on high/true color modes (the palette has been set
  8178. correctly using LoadRGB32() as it displays fine with other modes).
  8179. I am opening the screen myself by asking the user for a display
  8180. mode id (stored in aps->aps_ModeID). Just out of interest (since
  8181. Picasso96's SDK makes this quite unclear), does SA_DisplayID
  8182. override SA_Depth when the ID refers to a high/true color mode?
  8183. It appears that this is the case because the screen opens okay
  8184. but I thought I'd check this (I should really be replacing SA_Depth
  8185. with TAG_IGNORE for foreign modes but I haven't done this yet
  8186. because WinUAE's Picasso modes appear not to set the foreign bit
  8187. in their mode id's!)
  8188. The program only does 256 color rendering but needs to allow
  8189. the user to open on a high/true color screen btw.
  8190. A code snippet follows:
  8191. // Note: ih is a handle for some ILBM loading code I wrote.
  8192. //       The image is 16 colors (TEMPLATEDEPTH = 4).
  8193. static UWORD defaultPens = 0xffff;
  8194. static struct Image tempImage =
  8195.     0, 0, TEMPLATEWIDTH, TEMPLATEHEIGHT,
  8196.     TEMPLATEDEPTH, NULL, 0x0f, 0x00, NULL
  8197.     /* Open public screen */
  8198.     if (!(aps->aps_Screen = OpenScreenTags(NULL,
  8199.         SA_DisplayID, aps->aps_ModeID,    // Comes from mode requester
  8200.         SA_Width, aps->aps_ScreenWidth,
  8201.         SA_Height, aps->aps_ScreenHeight,
  8202.         SA_Depth, SCREENDEPTH,        // SCREENDEPTH = 8
  8203.         SA_Title, SCREENTITLE,
  8204.         SA_PubName, PUBSCREENNAME,
  8205.         SA_Behind, TRUE,
  8206.         SA_Type, PUBLICSCREEN,
  8207.         SA_FullPalette, TRUE,
  8208.         SA_Interleaved, TRUE,        // In case we're a native mode
  8209.         SA_Pens, &defaultPens,
  8210.         SA_ErrorCode, &scrError,
  8211.         TAG_DONE)))
  8212.         if (scrError == OSERR_NOMEM || scrError == OSERR_NOCHIPMEM)
  8213.             err = OPENAPPSCR_ERR_MEM;
  8214.         else
  8215.             err = OPENAPPSCR_ERR_SCR;
  8216.         break;
  8217.      * Allocate template bitmap in the same format as the
  8218.      * screen. This will go into fastram for RTG screens or
  8219.      * AGA screens with FBlit or similar installed and enabled,
  8220.      * or into chipram with AGA and FBlit or similar not
  8221.      * installed and enabled.
  8222.     if (!(aps->aps_TemplateBitMap = AllocBitMap(TEMPLATEWIDTH,
  8223.                     TEMPLATEHEIGHT,
  8224.                     SCREENDEPTH,
  8225.                     BMF_INTERLEAVED | BMF_CLEAR,
  8226.                     aps->aps_Screen->RastPort.BitMap)))
  8227.         err = OPENAPPSCR_ERR_MEM;
  8228.         break;
  8229.      * Load template image data. For RTG modes this gets
  8230.      * loaded into a fastram buffer and made to look like
  8231.      * an Image structure then the image is blitted to
  8232.      * the template bitmap. For AGA modes we load the
  8233.      * image data directly into the template bitmap
  8234.      * (which may be in fastram if FBlit or similar
  8235.      * is installed and enabled, or chipram if not).
  8236.     if (GetBitMapAttr(aps->aps_TemplateBitMap, BMA_FLAGS) & BMF_STANDARD)
  8237.         // NATIVE AGA
  8238.         BOOL    retCode;
  8239.         for (i = 0; i < TEMPLATEDEPTH; i++)
  8240.             ih->Planes[i] = aps->aps_TemplateBitMap->Planes[i];
  8241.         ih->ByteModulo = aps->aps_TemplateBitMap->BytesPerRow;
  8242.         retCode = ilbmLoad(ih);
  8243.         ih->Planes[0] = NULL;        /* So we don't deallocate memory */
  8244.         if (!retCode)
  8245.             err = OPENAPPSCR_ERR_TEMPLOAD;
  8246.             break;
  8247.     else
  8248.         // RTG
  8249.         /* Convert background template to Image structure */
  8250.         tempImage.ImageData = (UWORD *)ih->Planes[0];
  8251.          * Copy template Image to template BitMap. To do this,
  8252.          * we must construct a temporary RastPort and attach the
  8253.          * template BitMap to it so that DrawImage() can be called.
  8254.          */
  8255.         InitRastPort(&tempRp);
  8256.         tempRp.BitMap = aps->aps_TemplateBitMap;
  8257.         DrawImage(&tempRp, &tempImage, 0, 0);
  8258. After this setup, the template bitmap image is blitted to the
  8259. screen (actually, a window on the screen with BltBitMapRastPort()).
  8260. As I said, the image data shows up perfectly so all the ILBM
  8261. loading code is fine but the colors are wrong when the selected
  8262. screen is > 8-bit depth.
  8263. Any help greatly appreciated!  Thanks.
  8264. __________________________________________________
  8265. Do You Yahoo!?
  8266. Get email at your own domain with Yahoo! Mail. 
  8267. http://personal.mail.yahoo.com/
  8268. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  8269. @ENDNODE
  8270. @NODE "Mail_250" " Re: C-Amiga book? "
  8271. Date: 02-27-01 21:25:45
  8272. Subject: @{b}Re: C-Amiga book?@{ub}
  8273. Hi Mike,
  8274. > well stick me down for a copy, i much prefer using reference material
  8275. > on paper than from files on disk/cd.
  8276. That goes for many of us, I should imagine, but personally I wouldn't have a
  8277. problem with printing out particularly pertinent chapters.
  8278. Of course, given the state of the current Amiga browsers WRT printing,
  8279. that'd probably mean we'd need more print-friendly (i.e. PostScript or PDF)
  8280. version of the tutorials, as well as HTML...  (As you may remember, I *like*
  8281. PostScript ;^)
  8282. > Covering things like directory scanning (ExAll, ExNext etc.) and how
  8283. > to copy a file the fool proof way and simple things which are handy as
  8284. > a quick reference.
  8285. So we're thinking in terms of filling in the gaps left by the Amiga Mail
  8286. articles on the DevCD?  (And how to use newer APIs that have become
  8287. available since they were written?)
  8288. > Granted these code snippets could just as well be offered on a web
  8289. > site - such as the C repository.  BTW: has the site been moved to a
  8290. > better server (ie. non Redhotant.com yet??)
  8291. Not yet, but I'm working on it ;^)
  8292. > a nice sql search engine to find code snippets on given topics would
  8293. > be handy.  and allow a form button to copy the code from the page to
  8294. > the clipboard at the click of it :o)  for lazy people to paste into
  8295. > their c text editor... hehe.
  8296. Ah - but that would be a security risk ;^p
  8297. All the best,
  8298. Alastair M. Robinson, email:blackfive@fakenhamweb.co.uk
  8299.  -- You know you've been hacking too long when...
  8300. ...you start typing semi-colons at the end of sentences instead of full stops;
  8301. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  8302. @ENDNODE
  8303. @NODE "Mail_251" " Ellipsis notation with interactive commands (style-guide issue) "
  8304. Date: 02-27-01 23:58:24
  8305. Subject: @{b}Ellipsis notation with interactive commands (style-guide issue)@{ub}
  8306. Dear list, let me once again go a little bit off topic,
  8307. According to a book I read, the convention about placing three dots
  8308. after interactive commands (e.g. "Save as...") originates from Apples
  8309. Lisa and was later adopted by the Macintosh, Commodore Amiga, Microsoft
  8310. Windows and Motif.
  8311. However, according to this book they should only be used when the dialog
  8312. box following the command issued needs additional info from the user
  8313. (thus can also be aborted).
  8314. So it would be wrong to have a menu item named "About..." or "New
  8315. window...", since these do not require additional info from the user.
  8316. I don't have the Amiga style-guide, so I cannot check if C= modified the
  8317. convention when they adopted it. If not then we sure have a lot of
  8318. programs which violate it... I just looked at Workbench and here we have
  8319. "About...", "New drawer" and "Information..." which are all wrong
  8320. according to the original convention. Actually, even if C= did modify
  8321. the convention to say "commands opening additional windows" then
  8322. Workbench still violate it...
  8323. Any comments?
  8324. Kind regards Allan
  8325. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  8326. @ENDNODE
  8327. @NODE "Mail_252" " Re: Ellipsis notation with interactive commands (style-guide issue) "
  8328. Date: 02-28-01 02:50:13
  8329. Subject: @{b}Re: Ellipsis notation with interactive commands (style-guide issue)@{ub}
  8330. ----- Original Message -----
  8331. From: "Allan Odgaard" <Duff@DIKU.DK>
  8332. To: <amiga-c@yahoogroups.com>
  8333. Sent: Tuesday, February 27, 2001 4:00 PM
  8334. Subject: [amiga-c] Ellipsis notation with interactive commands (style-guide
  8335. issue)
  8336. > Dear list, let me once again go a little bit off topic,
  8337. > According to a book I read, the convention about placing three dots
  8338. > after interactive commands (e.g. "Save as...") originates from Apples
  8339. > Lisa and was later adopted by the Macintosh, Commodore Amiga, Microsoft
  8340. > Windows and Motif.
  8341. > However, according to this book they should only be used when the dialog
  8342. > box following the command issued needs additional info from the user
  8343. > (thus can also be aborted).
  8344. > So it would be wrong to have a menu item named "About..." or "New
  8345. > window...", since these do not require additional info from the user.
  8346. The thinking is: When opening a new window,  the user is going do something
  8347. with it and that's going to require additional user input. In any case and
  8348. especially relevant with 'about' windows and the like, the user is allmost
  8349. certainly eventually going to click a button or close gadget, press 'enter'
  8350. or do something, to close the window. Mouse clicks and key presses literally
  8351. are user input. Hence, any command that opens a window or requester requires
  8352. additional user input and as such should have an elipse after it.
  8353. Whether that was the original convention or a later  interpretation or
  8354. refinement, I don't know, but I've allways thought it makes perfect sense.
  8355. > I don't have the Amiga style-guide, so I cannot check if C= modified the
  8356. > convention when they adopted it. If not then we sure have a lot of
  8357. > programs which violate it... I just looked at Workbench and here we have
  8358. > "About...", "New drawer" and "Information..." which are all wrong
  8359. > according to the original convention. Actually, even if C= did modify
  8360. > the convention to say "commands opening additional windows" then
  8361. > Workbench still violate it...
  8362. > Any comments?
  8363. If I recall correctly, the Amiga Style Guide specifically states that any
  8364. command opening a window or requester should have an elipse after it.
  8365. Regards, Rod
  8366. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  8367. @ENDNODE
  8368. @NODE "Mail_253" " Re: Ellipsis notation with interactive commands (style-guide issue) "
  8369. Date: 02-28-01 03:09:58
  8370. Subject: @{b}Re: Ellipsis notation with interactive commands (style-guide issue)@{ub}
  8371. > > "About...", "New drawer" and "Information..." which are all wrong
  8372. > > according to the original convention. Actually, even if C= did modify
  8373. > > the convention to say "commands opening additional windows" then
  8374. > > Workbench still violate it...
  8375. > > Any comments?
  8376. > If I recall correctly, the Amiga Style Guide specifically states that any
  8377. > command opening a window or requester should have an elipse after it.
  8378. That's my recollection also <dang book is in storage though...>
  8379. Allan, you clearly have no debugging to keep you busy ;) If you'd
  8380. like some code to debug I'd be more than happy to give you some! :)
  8381. Cheers,
  8382. __________________________________________________
  8383. Do You Yahoo!?
  8384. Get email at your own domain with Yahoo! Mail. 
  8385. http://personal.mail.yahoo.com/
  8386. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  8387. @ENDNODE
  8388. @NODE "Mail_254" " Re: Ellipsis notation with interactive commands (style-guide issue) "
  8389. Date: 02-28-01 03:38:01
  8390. Subject: @{b}Re: Ellipsis notation with interactive commands (style-guide issue)@{ub}
  8391. On 28-Feb-01, Allan Odgaard wrote:
  8392. > Dear list, let me once again go a little bit off topic,
  8393. > According to a book I read, the convention about placing three dots
  8394. > after interactive commands (e.g. "Save as...") originates from Apples
  8395. > Lisa and was later adopted by the Macintosh, Commodore Amiga,
  8396. > Microsoft Windows and Motif.
  8397. > However, according to this book they should only be used when the
  8398. > dialog box following the command issued needs additional info from
  8399. > the user (thus can also be aborted).
  8400. > So it would be wrong to have a menu item named "About..." or "New
  8401. > window...", since these do not require additional info from the user.
  8402. > I don't have the Amiga style-guide, so I cannot check if C= modified
  8403. > the convention when they adopted it. If not then we sure have a lot
  8404. > of programs which violate it... I just looked at Workbench and here
  8405. > we have "About...", "New drawer" and "Information..." which are all
  8406. > wrong according to the original convention. Actually, even if C= did
  8407. > modify the convention to say "commands opening additional windows"
  8408. > then Workbench still violate it...
  8409. > Any comments?
  8410. > Kind regards Allan
  8411. I would say you are partially right,  as far as I know,  "..."  has always 
  8412. been a pseudonym for  "*AND SO ON*"  in English &
  8413. is used to indicate an incomplete list of items displayed, 
  8414. a list of items not completely displayed for aesthetic reasons 
  8415. or that there is more information or interaction to follow.
  8416. The important differenciation being in the function.
  8417. 1)  Information - About - Docs - Help,  etc.   
  8418.      Use   "..."   to indicate that there is more info to follow,
  8419.      but not displayed at this time.
  8420. 2)  User interactivity - user options, etc.
  8421.      Use  "..."  to indicate that there is more interaction required
  8422.      before the function is complete,  OR,  there are several
  8423.      option to choose from before it can complete.
  8424.      However,  the meaning described by the label is usually & frequently 
  8425.      beyond the scope of describing the function in its entirety,  
  8426.      to anyones complete satisfaction.
  8427. Youre example:  
  8428. >"About...", "New drawer" and "Information..." 
  8429. "About..."  contains no actual information by the word itself,
  8430.               however inside,  it contains kick version, 
  8431.               wb version, copyright notices, dates, etc...
  8432.               The "about"  word is insufficient to describe the total
  8433.               scope of the function in itself,  so  "About..."  is used. 
  8434. "New Drawer"  contains enough information to make the function 
  8435.              operate without any further information from the user,
  8436.              the prompt string "Rename_Me"  is optionally changable.
  8437. "Information..."  again, contains no actual information by itself.
  8438.               Inside, it contains not just one source of information,
  8439.               but several options & a collection of other things that
  8440.               can be done there.   Therefore it has to say "..."
  8441.               as the entire scope of the "Information"  function cannot
  8442.               adequately be represented by one word.
  8443. Regards
  8444. _________________________________________
  8445. Colin Wenzel.  Quensland, Australia.
  8446. EMAIL:  colinwenzel@yahoo.com
  8447. URL:       http://www.hotkey.net.au/~colstv/
  8448. AMIGA: 4000T,  68060/50,  150Mb RAM,  
  8449.                OS 3.9,  Spectrum Gfx Card + P96.
  8450. Need an Image Generator For CATV  ??
  8451.        http://connect.to/products
  8452. _________________________________________
  8453. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  8454. @ENDNODE
  8455. @NODE "Mail_255" " RE: iff.library example "
  8456. Date: 02-28-01 11:34:11
  8457. Subject: @{b}RE: iff.library example@{ub}
  8458. >Hello,
  8459. >Here i sent my example of using the iff.library. It compiles correctly with
  8460. >StormC3 from the dev2.1 cdrom.
  8461. >i hope it's to someones use... 
  8462. Yes it works
  8463. Thank you very much, for this example. My problem was that some variables
  8464. was not global.
  8465. Filip
  8466. >Groeten,
  8467. >Joris Kempen - webmaster
  8468. >visit www.detrekkers.com
  8469. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  8470. @ENDNODE
  8471. @NODE "Mail_256" " Re: Alloc/Free___ Chip memory fragmentation "
  8472. Date: 02-24-01 11:28:17
  8473. Subject: @{b}Re: Alloc/Free___ Chip memory fragmentation@{ub}
  8474. Hi William 
  8475. William Robinson wrote this on 20-Feb-01 at 15:51:17
  8476. >>> Problematic Task:
  8477. >>>     implementing a double buffered intuition screen
  8478. >>> Problem:
  8479. >>>     When the program executes, I get lots of errors at the end
  8480. >>> saying: "memory block at address: SOMEHEXNUMBER of size 0 not freed".
  8481. >>> and then another usually saying: "two other memory blocks of size <a
  8482. >>>> bytes not freed". So, I use the flush resources
  8483. >> Before freeing the window you must restore the original buffer or it will
  8484. >> free
  8485. >> the one that is attached.
  8486. > i'm using a jsut a screen... so it needs to have to original settings as
  8487. > when it was opened when freed?
  8488. If you`re using the ScrolViewPort() trick what I said was irrelevent. If your
  8489. using propper v39 multibuffering the you must restore the original screen
  8490. bitmap before freeing the screen or you`ll free the one that is attached
  8491. twice.
  8492. any persons, living or dead, are entirely coincidental.    
  8493. Tim Hanson,
  8494. by the River,Canterbury, Kent.
  8495. Amiga A1200T,`040/25,603e/160,32MB Fast,BVisionPPC,
  8496. 8.4GB IDE HD,ZIP SCSI,RENO x2CD SCSI,Pace 56K
  8497. Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 
  8498. @ENDNODE
  8499.